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

Side by Side Diff: third_party/WebKit/LayoutTests/media/media-can-load-when-hidden.html

Issue 1715303002: Add TODOs to convert from video-test.js to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add bug ref Created 4 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 <html> 1 <html>
2 <head> 2 <head>
3 <style> 3 <style>
4 video {display:none; background-color: yellow; width: 320px; height: 240px;} 4 video {display:none; background-color: yellow; width: 320px; height: 240px;}
5 </style> 5 </style>
6 </head> 6 </head>
7 <body onload="start()"> 7 <body onload="start()">
8 8
9 <video controls ></video> 9 <video controls ></video>
10 10
11 <p>Test HTMLMediaElement to be sure that the video is getting loaded eve n if the element 11 <p>Test HTMLMediaElement to be sure that the video is getting loaded eve n if the element
12 is hidden.</p> 12 is hidden.</p>
13 <script src=media-file.js></script> 13 <script src=media-file.js></script>
14 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
15 (Please avoid writing new tests using video-test.js) -->
14 <script src=video-test.js></script> 16 <script src=video-test.js></script>
15 <script> 17 <script>
16 function start() 18 function start()
17 { 19 {
18 video = document.getElementsByTagName('video')[0]; 20 video = document.getElementsByTagName('video')[0];
19 waitForEvent('durationchange', function() { endTest(); }); 21 waitForEvent('durationchange', function() { endTest(); });
20 video.src = findMediaFile("video", "content/test"); 22 video.src = findMediaFile("video", "content/test");
21 } 23 }
22 </script> 24 </script>
23 </body> 25 </body>
24 </html> 26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698