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

Side by Side Diff: third_party/WebKit/LayoutTests/media/encrypted-media/encrypted-media-playback-setmediakeys-after-src.html

Issue 2270383002: clean up encrypted-media tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Clear Key Playback</title> 4 <title>Clear Key Playback</title>
5 <script src="encrypted-media-utils.js"></script> 5 <script src="encrypted-media-utils.js"></script>
6 <script src="../../resources/testharness.js"></script> 6 <script src="../../resources/testharness.js"></script>
7 <script src="../../resources/testharnessreport.js"></script> 7 <script src="../../resources/testharnessreport.js"></script>
8 </head> 8 </head>
9 <body> 9 <body>
10 <video id="testVideo"></video> 10 <video></video>
11 <div id="log"></div>
12 <script> 11 <script>
13 async_test(function(test) 12 async_test(function(test)
14 { 13 {
15 var video = document.getElementById('testVideo'); 14 var video = document.querySelector('video');
16 var content = '../content/test-encrypted.webm'; 15 var content = '../content/test-encrypted.webm';
17 var isUpdatePromiseResolved = false; 16 var isUpdatePromiseResolved = false;
18 var encryptedEventCount = 0; 17 var encryptedEventCount = 0;
19 18
20 var rawKey = new Uint8Array([0xeb, 0xdd, 0x62, 0xf1, 0x68, 0x14, 0xd2, 0x7b, 19 var rawKey = new Uint8Array([0xeb, 0xdd, 0x62, 0xf1, 0x68, 0x14, 0xd2, 0x7b,
21 0x68, 0xef, 0x12, 0x2a, 0xfc, 0xe4, 0xae, 0x3c]); 20 0x68, 0xef, 0x12, 0x2a, 0xfc, 0xe4, 0xae, 0x3c]);
22 21
23 function onEncrypted(event) 22 function onEncrypted(event)
24 { 23 {
25 assert_equals(event.target, video); 24 assert_equals(event.target, video);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 return video.setMediaKeys(mediaKeys); 82 return video.setMediaKeys(mediaKeys);
84 }).then(function(result) { 83 }).then(function(result) {
85 video.play(); 84 video.play();
86 }).catch(function(error) { 85 }).catch(function(error) {
87 forceTestFailureFromPromise(test, error); 86 forceTestFailureFromPromise(test, error);
88 }); 87 });
89 }, 'Playback using Clear Key key system, calling setMediaKeys() afte r setting src attribute.'); 88 }, 'Playback using Clear Key key system, calling setMediaKeys() afte r setting src attribute.');
90 </script> 89 </script>
91 </body> 90 </body>
92 </html> 91 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698