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 b57208e0c4c9cc5a82b8b7e192b8a99afeb7fc9b..90f0795c467debb26df4a2902ab2784093bec684 100644 |
--- a/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax-expected.txt |
+++ b/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax-expected.txt |
@@ -1,35 +1,10 @@ |
-This tests the basic API of MediaKeys and MediaKeySession. |
- |
-Test MediaKeys. |
-EXPECTED (typeof window.MediaKeys == 'function') OK |
-TEST(new MediaKeys("")) THROWS(DOMException.INVALID_ACCESS_ERR: Failed to construct 'MediaKeys': The key system provided is invalid.) OK |
-TEST(new MediaKeys("unsupported")) THROWS(DOMException.NOT_SUPPORTED_ERR: Failed to construct 'MediaKeys': The 'unsupported' key system is not supported.) OK |
-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()) THROWS("TypeError: Failed to execute 'createSession' on 'MediaKeys': 2 arguments required, but only 0 present.") OK |
-TEST(mediaKeys.createSession("")) THROWS("TypeError: Failed to execute 'createSession' on 'MediaKeys': 2 arguments required, but only 1 present.") OK |
-TEST(mediaKeys.createSession("video/webm")) THROWS("TypeError: Failed to execute 'createSession' on 'MediaKeys': 2 arguments required, but only 1 present.") OK |
-TEST(mediaKeys.createSession("", new Uint8Array(1))) THROWS(DOMException.INVALID_ACCESS_ERR: Failed to execute 'createSession' on 'MediaKeys': The contentType provided ('') is empty.) OK |
-TEST(mediaKeys.createSession("video/webm", null)) THROWS(DOMException.INVALID_ACCESS_ERR: Failed to execute 'createSession' on 'MediaKeys': The initData provided is null or empty.) OK |
-TEST(mediaKeys.createSession("video/webm", new Uint8Array(0))) THROWS(DOMException.INVALID_ACCESS_ERR: Failed to execute 'createSession' on 'MediaKeys': The initData provided is null or empty.) OK |
-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)) |
-EXPECTED (typeof mediaKeySession == 'object') OK |
-EXPECTED (typeof mediaKeySession.addEventListener == 'function') OK |
-EXPECTED (typeof mediaKeySession.update == 'function') OK |
-EXPECTED (mediaKeySession.error == 'null') OK |
-EXPECTED (mediaKeySession.keySystem == 'org.w3.clearkey') OK |
-EXPECTED (mediaKeySession.sessionId != 'null') OK |
-EXPECTED (mediaKeySession.onwebkitkeyadded == 'null') OK |
-EXPECTED (mediaKeySession.onwebkitkeyerror == 'null') OK |
-EXPECTED (mediaKeySession.onwebkitkeymessage == 'null') OK |
-TEST(mediaKeySession.update()) THROWS("TypeError: Failed to execute 'update' on 'MediaKeySession': 1 argument required, but only 0 present.") OK |
-TEST(mediaKeySession.update(null)) THROWS(DOMException.INVALID_ACCESS_ERR: Failed to execute 'update' on 'MediaKeySession': The response argument provided is invalid.) OK |
-RUN(mediaKeySession.update(new Uint8Array(1))) |
-RUN(mediaKeySession.release()) |
-END OF TEST |
+This is a testharness.js-based test. |
+PASS Test MediaKeys constructor exceptions. |
+PASS Test MediaKeys constructor. |
+PASS Test MediaKeys createSession() exceptions. |
+PASS Test MediaKeys createSession(). |
+PASS Test MediaKeySession update() exceptions. |
+PASS Test MediaKeySession update(). |
+PASS Test MediaKeySession release(). |
+Harness: the test ran to completion. |