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

Unified Diff: LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html

Issue 16387015: Make unprefixed EME APIs use platform and Chromium. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: KURL.h moved Created 7 years, 6 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.html
diff --git a/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html b/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html
index b7ee629622281b46f73e86621bce940693a07097..294bec66235ed8b8655837dac41eee9af6cd3a50 100644
--- a/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html
+++ b/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html
@@ -18,31 +18,25 @@
function runTest()
{
- // Initialize the MockCDM. It supports the key system 'com.apple.mock', the
- // mime type 'video/mock'. It requires init data to begin with 'mock', and
- // keys to begin with 'key'.
- if (internals)
- internals.initializeMockCDM();
-
consoleWrite("Test MediaKeys.");
testExpected('typeof window.MediaKeys', 'function');
testDOMException('new MediaKeys("")', "DOMException.INVALID_ACCESS_ERR");
testDOMException('new MediaKeys("unsupported")', "DOMException.NOT_SUPPORTED_ERR");
- run('mediaKeys = new MediaKeys("com.webcore.mock")');
+ run('mediaKeys = new MediaKeys("org.w3.clearkey")');
testExpected('typeof mediaKeys', 'object');
- testExpected('mediaKeys.keySystem', 'com.webcore.mock');
+ testExpected('mediaKeys.keySystem', 'org.w3.clearkey');
testExpected('typeof mediaKeys.createSession', 'function');
testDOMException('mediaKeys.createSession("", new Uint8Array(1))', "DOMException.INVALID_ACCESS_ERR");
testDOMException('mediaKeys.createSession("unsupported/type")', "DOMException.NOT_SUPPORTED_ERR");
consoleWrite("");
consoleWrite("Test MediaKeySession.");
- run('mediaKeySession = mediaKeys.createSession("video/mock", initData)');
+ run('mediaKeySession = mediaKeys.createSession("video/webm", initData)');
testExpected('typeof mediaKeySession', 'object');
testExpected('typeof mediaKeySession.addEventListener', 'function');
testExpected('typeof mediaKeySession.update', 'function');
testExpected('mediaKeySession.error', null);
- testExpected('mediaKeySession.keySystem', 'com.webcore.mock');
+ testExpected('mediaKeySession.keySystem', 'org.w3.clearkey');
testExpected('mediaKeySession.sessionId', null, '!=');
testExpected('mediaKeySession.onwebkitkeyadded', null);
testExpected('mediaKeySession.onwebkitkeyerror', null);

Powered by Google App Engine
This is Rietveld 408576698