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

Unified Diff: third_party/WebKit/LayoutTests/media/encrypted-media/prefixed/encrypted-media-not-loaded.html

Issue 1712903002: Remove prefixed EME. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix isRenewalMessage() in browser tests. Created 4 years, 10 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: third_party/WebKit/LayoutTests/media/encrypted-media/prefixed/encrypted-media-not-loaded.html
diff --git a/third_party/WebKit/LayoutTests/media/encrypted-media/prefixed/encrypted-media-not-loaded.html b/third_party/WebKit/LayoutTests/media/encrypted-media/prefixed/encrypted-media-not-loaded.html
deleted file mode 100644
index 71f0123b0aca6a13cd9efdd425cf5efe9ab715e8..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/media/encrypted-media/prefixed/encrypted-media-not-loaded.html
+++ /dev/null
@@ -1,54 +0,0 @@
-<!doctype html>
-<html lang="en">
- <head>
- </head>
- <body>
- <video></video>
- <p>Test that the methods throw INVALID_STATE_ERR when the media element has not loaded. canPlayType() never throws.</p>
-
- <script src=../../media-file.js></script>
- <script src=../../video-test.js></script>
- <script>
- var key = new Uint8Array([0x51, 0x52, 0x53]);
-
- function loadStarted()
- {
- test("video.networkState == video.NETWORK_LOADING || video.networkState == video.NETWORK_IDLE");
- testExpected("video.currentSrc", "", "!=");
- consoleWrite("Verify that none of the methods throw when load has started.");
- run("video.webkitGenerateKeyRequest('webkit-org.w3.clearkey')");
- run("video.webkitAddKey('webkit-org.w3.clearkey', key)");
- run("video.webkitCancelKeyRequest('webkit-org.w3.clearkey')");
- run("video.canPlayType('audio/wav', 'webkit-org.w3.clearkey')");
-
- endTest();
- }
-
- // Confirms the unloaded state.
- testExpected("video.networkState", video.NETWORK_EMPTY);
- testExpected("video.currentSrc", "");
-
- consoleWrite("No 'src'. Verify that all methods except canPlayType() throw INVALID_STATE_ERR.");
- testDOMException("video.webkitGenerateKeyRequest('webkit-org.w3.clearkey')", "DOMException.INVALID_STATE_ERR");
- testDOMException("video.webkitAddKey('webkit-org.w3.clearkey', key)", "DOMException.INVALID_STATE_ERR");
- testDOMException("video.webkitCancelKeyRequest('webkit-org.w3.clearkey')", "DOMException.INVALID_STATE_ERR");
- run("video.canPlayType('audio/wav', 'webkit-org.w3.clearkey')");
-
- video.setAttribute("src", findMediaFile("video", "../../content/test"));
-
- consoleWrite("<br>'src' has been set, but loading has not yet started. Verify that all methods except canPlayType() throw INVALID_STATE_ERR.");
-
- testExpected("video.networkState", video.NETWORK_NO_SOURCE);
- testExpected("video.currentSrc", "");
-
- testDOMException("video.webkitGenerateKeyRequest('webkit-org.w3.clearkey')", "DOMException.INVALID_STATE_ERR");
- testDOMException("video.webkitAddKey('webkit-org.w3.clearkey', key)", "DOMException.INVALID_STATE_ERR");
- testDOMException("video.webkitCancelKeyRequest('webkit-org.w3.clearkey')", "DOMException.INVALID_STATE_ERR");
- run("video.canPlayType('audio/wav', 'webkit-org.w3.clearkey')");
-
-
- consoleWrite("");
- waitForEvent('loadstart', loadStarted);
- </script>
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698