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

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

Issue 205143002: Increase timeout on flaky encrypted-media content tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: trying rebase again Created 6 years, 9 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="../w3c-media-utils.js"></script> 6 <script src="../w3c-media-utils.js"></script>
7 <script src="../../resources/testharness.js"></script> 7 <script src="../../resources/testharness.js"></script>
8 <script src="../../resources/testharnessreport.js"></script> 8 <script src="../../resources/testharnessreport.js"></script>
9 </head> 9 </head>
10 <body> 10 <body>
11 <video id="testVideo"></video> 11 <video id="testVideo"></video>
12 <div id="log"></div> 12 <div id="log"></div>
13 <p>Test playback of encrypted media using Clear Key key system.</p> 13 <p>Test playback of encrypted media using Clear Key key system.</p>
14 <script> 14 <script>
15 // Timeout for all tests to run.
16 setup({ timeout: 60000 });
17
15 async_test(function(test) 18 async_test(function(test)
16 { 19 {
17 var video = document.getElementById("testVideo"); 20 var video = document.getElementById("testVideo");
18 var mediaKeys = new MediaKeys("org.w3.clearkey"); 21 var mediaKeys = new MediaKeys("org.w3.clearkey");
19 var mediaKeySession = null; 22 var mediaKeySession = null;
20 var sessionReadyReceived = false; 23 var sessionReadyReceived = false;
21 24
22 var rawKey = new Uint8Array([0xeb, 0xdd, 0x62, 0xf1, 0x68, 0x14, 0xd2, 0x7b, 25 var rawKey = new Uint8Array([0xeb, 0xdd, 0x62, 0xf1, 0x68, 0x14, 0xd2, 0x7b,
23 0x68, 0xef, 0x12, 0x2a, 0xfc, 0xe4, 0xae, 0x3c]); 26 0x68, 0xef, 0x12, 0x2a, 0xfc, 0xe4, 0xae, 0x3c]);
24 27
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 72
70 test.done(); 73 test.done();
71 } 74 }
72 75
73 waitForEventAndRunStep("needkey", video, onNeedKey, test); 76 waitForEventAndRunStep("needkey", video, onNeedKey, test);
74 waitForEventAndRunStep("playing", video, onPlaying, test); 77 waitForEventAndRunStep("playing", video, onPlaying, test);
75 78
76 video.src = "../content/test-encrypted.webm"; 79 video.src = "../content/test-encrypted.webm";
77 video.setMediaKeys(mediaKeys); 80 video.setMediaKeys(mediaKeys);
78 video.play(); 81 video.play();
79 }, "Playback using Clear Key key system, calling setMediaKeys() afte r setting src attribute."); 82 }, "Playback using Clear Key key system, calling setMediaKeys() afte r setting src attribute.",
83 { timeout: 60000 });
80 </script> 84 </script>
81 </body> 85 </body>
82 </html> 86 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698