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

Unified Diff: LayoutTests/media/encrypted-media/encrypted-media-onencrypted.html

Issue 647383002: [Speculative revert to fix browser_tests on Blink canaries.] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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-onencrypted.html
diff --git a/LayoutTests/media/encrypted-media/encrypted-media-onencrypted.html b/LayoutTests/media/encrypted-media/encrypted-media-onencrypted.html
deleted file mode 100644
index 67577ffa976fd79179dea20da1cf39dd401a3083..0000000000000000000000000000000000000000
--- a/LayoutTests/media/encrypted-media/encrypted-media-onencrypted.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>onencrypted</title>
- <script src="encrypted-media-utils.js"></script>
- <script src="../../resources/testharness.js"></script>
- <script src="../../resources/testharnessreport.js"></script>
- </head>
- <body>
- <video id="testVideo" controls></video>
- <div id="log"></div>
- <p>Test that encrypted event is fired on an encrypted media file.</p>
- <script>
- var expectedInitData = stringToUint8Array('0123456789012345');
-
- // Will get 2 identical events, one for audio, one for video.
- var expectedEvents = 2;
-
- async_test(function(test)
- {
- var video = document.getElementById('testVideo');
-
- var onEncrypted = function(event)
- {
- assert_equals(event.target, video);
- assert_true(event instanceof window.MediaEncryptedEvent);
- assert_equals(event.type, 'encrypted');
- assert_equals(event.initDataType, 'webm');
- assert_array_equals(new Uint8Array(event.initData), expectedInitData);
-
- if (--expectedEvents == 0)
- test.done();
- };
-
- waitForEventAndRunStep('encrypted', video, onEncrypted, test);
- video.src = '../content/test-encrypted.webm';
- }, 'encrypted fired on encrypted media file.');
- </script>
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698