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

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-black-bg-in-media-document.html

Issue 2015503002: Move TODO(philipj) to TODO(foolip) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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 <script src="media-file.js"></script> 3 <script src="media-file.js"></script>
4 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 4 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956
5 (Please avoid writing new tests using video-test.js) --> 5 (Please avoid writing new tests using video-test.js) -->
6 <script src="video-test.js"></script> 6 <script src="video-test.js"></script>
7 <script> 7 <script>
8 function iframeLoad() { 8 function iframeLoad() {
9 var iframe = document.querySelector("iframe"); 9 var iframe = document.querySelector("iframe");
10 var iframeBody = iframe.contentDocument.querySelector("body"); 10 var iframeBody = iframe.contentDocument.querySelector("body");
11 11
12 // Required to be global for testExpected() to work properly. 12 // Required to be global for testExpected() to work properly.
13 iframeBodyStyle = iframe.contentDocument.defaultView.getComputed Style(iframeBody, null); 13 iframeBodyStyle = iframe.contentDocument.defaultView.getComputed Style(iframeBody, null);
14 testExpected("iframeBodyStyle.backgroundColor", "rgb(0, 0, 0)"); 14 testExpected("iframeBodyStyle.backgroundColor", "rgb(0, 0, 0)");
15 endTest(); 15 endTest();
16 } 16 }
17 17
18 function load() { 18 function load() {
19 var iframe = document.querySelector("iframe"); 19 var iframe = document.querySelector("iframe");
20 iframe.onload = iframeLoad; 20 iframe.onload = iframeLoad;
21 iframe.src = findMediaFile("video", "content/counting"); 21 iframe.src = findMediaFile("video", "content/counting");
22 } 22 }
23 </script> 23 </script>
24 </head> 24 </head>
25 25
26 <body onload="load()"> 26 <body onload="load()">
27 <p>Test that video media documents have a black background.</p> 27 <p>Test that video media documents have a black background.</p>
28 <iframe style="width: 200px; height: 200px;"></iframe> 28 <iframe style="width: 200px; height: 200px;"></iframe>
29 </body> 29 </body>
30 </html> 30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698