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

Side by Side Diff: third_party/WebKit/LayoutTests/media/media-extension-with-fragment.html

Issue 2043473002: Convert media-ended*, media-extension* and media-load* tests to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <title>Test that a media url with fragment loads properly</title>
3 <head> 3 <script src="../resources/testharness.js"></script>
4 <script src=media-file.js></script> 4 <script src="../resources/testharnessreport.js"></script>
5 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 5 <script src="media-file.js"></script>
6 (Please avoid writing new tests using video-test.js) --> 6 <video></video>
7 <script src=video-test.js></script> 7 <script>
8 <script> 8 async_test(function(t) {
9 function finish() 9 var video = document.querySelector("video");
10 { 10 video.onloadeddata = t.step_func_done();
11 logResult(event.type == "loadeddata", "MediaPlayer extracted ext ension from src url."); 11 video.onerror = t.unreached_func();
12 consoleWrite(""); 12 video.src = findMediaFile("video", "content/test") + "#01.00.xyz";
13 endTest(); 13 });
14 } 14 </script>
15
16
17 function start()
18 {
19 findMediaElement();
20 waitForEventAndEnd('loadeddata', finish);
21 waitForEvent('error', finish);
22 video.src = findMediaFile("video", "content/test") + "#01.00.xyz ";
23 }
24 </script>
25
26 </head>
27 <body onload="start()">
28
29 <video controls ></video>
30
31 </body>
32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698