diff options
author | Arnaud Berry <arnaudberry@google.com> | 2019-08-13 15:09:33 -0700 |
---|---|---|
committer | Arnaud Berry <arnaudberry@google.com> | 2019-08-13 15:10:54 -0700 |
commit | 30bb5db80c06ba9787b14ff1a87f0902405cebe1 (patch) | |
tree | 99de0fb738f119c4c88db58ce244c436536aa73f /TestMediaApp/assets | |
parent | eb22c0abe7bf08ea0270398523ab51c108d40482 (diff) | |
download | tests-30bb5db80c06ba9787b14ff1a87f0902405cebe1.tar.gz |
Add ability to throw exceptions when playing media items
Test: manual
Change-Id: I94a1a08e601bda8750797e5d1b20a04e93471382
Diffstat (limited to 'TestMediaApp/assets')
-rw-r--r-- | TestMediaApp/assets/media_items/advanced.json | 9 | ||||
-rw-r--r-- | TestMediaApp/assets/media_items/exceptions.json | 22 |
2 files changed, 31 insertions, 0 deletions
diff --git a/TestMediaApp/assets/media_items/advanced.json b/TestMediaApp/assets/media_items/advanced.json index 8f6bd8b..a6befa3 100644 --- a/TestMediaApp/assets/media_items/advanced.json +++ b/TestMediaApp/assets/media_items/advanced.json @@ -45,6 +45,15 @@ "DISPLAY_TITLE": "Album Art" }, "INCLUDE":"media_items/album_art/art_nodes.json" + }, + { + "FLAGS": "browsable", + "PLAYABLE_HINT": "LIST", + "METADATA": { + "MEDIA_ID": "advanced exceptions", + "DISPLAY_TITLE": "Exceptions" + }, + "INCLUDE":"media_items/exceptions.json" } ] }
\ No newline at end of file diff --git a/TestMediaApp/assets/media_items/exceptions.json b/TestMediaApp/assets/media_items/exceptions.json new file mode 100644 index 0000000..0a48d4d --- /dev/null +++ b/TestMediaApp/assets/media_items/exceptions.json @@ -0,0 +1,22 @@ +{ + "FLAGS": "browsable", + + "METADATA": { + "MEDIA_ID": "exceptions", + "DISPLAY_TITLE": "Exceptions" + }, + + "CHILDREN": [ + { + "FLAGS": "playable", + "METADATA": { + "MEDIA_ID": "exceptions play NPE", + "DISPLAY_TITLE": "Throw NPE on play", + "DURATION": 30000 + }, + "EVENTS": [ + { "STATE": "PLAYING", "THROW_EXCEPTION": "java.lang.NullPointerException" } + ] + } + ] +}
\ No newline at end of file |