Index: LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html |
diff --git a/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html b/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html |
index 294bec66235ed8b8655837dac41eee9af6cd3a50..baff8a7723222a228f5ecce6f1936717d67c7f0a 100644 |
--- a/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html |
+++ b/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html |
@@ -26,8 +26,11 @@ |
testExpected('typeof mediaKeys', 'object'); |
testExpected('mediaKeys.keySystem', 'org.w3.clearkey'); |
testExpected('typeof mediaKeys.createSession', 'function'); |
+ |
+ testDOMException('mediaKeys.createSession("")', "DOMException.INVALID_ACCESS_ERR"); |
testDOMException('mediaKeys.createSession("", new Uint8Array(1))', "DOMException.INVALID_ACCESS_ERR"); |
- testDOMException('mediaKeys.createSession("unsupported/type")', "DOMException.NOT_SUPPORTED_ERR"); |
+ testDOMException('mediaKeys.createSession("video/webm", null)', "DOMException.INVALID_ACCESS_ERR"); |
+ testDOMException('mediaKeys.createSession("unsupported/type", new Uint8Array(1))', "DOMException.NOT_SUPPORTED_ERR"); |
consoleWrite(""); |
consoleWrite("Test MediaKeySession."); |