Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Unified Diff: LayoutTests/media/encrypted-media/encrypted-media-v2-syntax-expected.txt

Issue 132823005: Schedule session initialization in MediaKeys. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@rename_close_gkr
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/media/encrypted-media/encrypted-media-v2-syntax-expected.txt
diff --git a/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax-expected.txt b/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax-expected.txt
index 2e5127d4cb99fc4fc64ad243625301c1c6cfc523..18341fb3920a82b7cfaa9ec7f06285cd9b8fbeb9 100644
--- a/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax-expected.txt
+++ b/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax-expected.txt
@@ -8,8 +8,10 @@ RUN(mediaKeys = new MediaKeys("org.w3.clearkey"))
EXPECTED (typeof mediaKeys == 'object') OK
EXPECTED (mediaKeys.keySystem == 'org.w3.clearkey') OK
EXPECTED (typeof mediaKeys.createSession == 'function') OK
-TEST(mediaKeys.createSession("", new Uint8Array(1))) THROWS(DOMException.INVALID_ACCESS_ERR: Failed to execute 'createSession' on 'MediaKeys': The type provided is empty, but initData is not empty.) OK
-TEST(mediaKeys.createSession("unsupported/type")) THROWS(DOMException.NOT_SUPPORTED_ERR: Failed to execute 'createSession' on 'MediaKeys': The type provided ('unsupported/type') is unsupported.) OK
+TEST(mediaKeys.createSession("")) THROWS(DOMException.INVALID_ACCESS_ERR: Failed to execute 'createSession' on 'MediaKeys': The type or initData provided is empty or null.) OK
ddorwin 2014/01/13 20:20:57 MediaKeys.idl needs to be updated. This should be
xhwang 2014/01/14 04:04:11 Done.
+TEST(mediaKeys.createSession("", new Uint8Array(1))) THROWS(DOMException.INVALID_ACCESS_ERR: Failed to execute 'createSession' on 'MediaKeys': The type or initData provided is empty or null.) OK
ddorwin 2014/01/13 20:20:57 Test for null too.
xhwang 2014/01/14 04:04:11 Done.
+TEST(mediaKeys.createSession("video/webm", null)) THROWS(DOMException.INVALID_ACCESS_ERR: Failed to execute 'createSession' on 'MediaKeys': The type or initData provided is empty or null.) OK
ddorwin 2014/01/13 20:20:57 We can also check for an empty initData array.
xhwang 2014/01/14 04:04:11 Done.
+TEST(mediaKeys.createSession("unsupported/type", new Uint8Array(1))) THROWS(DOMException.NOT_SUPPORTED_ERR: Failed to execute 'createSession' on 'MediaKeys': The type provided ('unsupported/type') is unsupported.) OK
Test MediaKeySession.
RUN(mediaKeySession = mediaKeys.createSession("video/webm", initData))
« no previous file with comments | « LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html ('k') | Source/modules/encryptedmedia/MediaKeySession.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698