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

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

Issue 14120003: Move LayoutTests from platform/chromium/... to generic location (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../../media/media-file.js"></script> 3 <script src="media-file.js"></script>
4 <script src="../../../media/video-test.js"></script> 4 <script src="video-test.js"></script>
5 <script> 5 <script>
6 function iframeLoad() { 6 function iframeLoad() {
7 var iframe = document.querySelector("iframe"); 7 var iframe = document.querySelector("iframe");
8 var iframeBody = iframe.contentDocument.querySelector("body"); 8 var iframeBody = iframe.contentDocument.querySelector("body");
9 9
10 // Required to be global for testExpected() to work properly. 10 // Required to be global for testExpected() to work properly.
11 iframeBodyStyle = iframe.contentDocument.defaultView.getComputed Style(iframeBody, null); 11 iframeBodyStyle = iframe.contentDocument.defaultView.getComputed Style(iframeBody, null);
12 testExpected("iframeBodyStyle.backgroundColor", "rgb(0, 0, 0)"); 12 testExpected("iframeBodyStyle.backgroundColor", "rgb(0, 0, 0)");
13 endTest(); 13 endTest();
14 } 14 }
15 15
16 function load() { 16 function load() {
17 var iframe = document.querySelector("iframe"); 17 var iframe = document.querySelector("iframe");
18 iframe.onload = iframeLoad; 18 iframe.onload = iframeLoad;
19 iframe.src = findMediaFile("video", "../../../media/content/coun ting"); 19 iframe.src = findMediaFile("video", "content/counting");
20 } 20 }
21 </script> 21 </script>
22 </head> 22 </head>
23 23
24 <body onload="load()"> 24 <body onload="load()">
25 <p>Test that video media documents have a black background.</p> 25 <p>Test that video media documents have a black background.</p>
26 <iframe style="width: 200px; height: 200px;"></iframe> 26 <iframe style="width: 200px; height: 200px;"></iframe>
27 </body> 27 </body>
28 </html> 28 </html>
OLDNEW
« no previous file with comments | « LayoutTests/media/resources/frame_size_change.webm ('k') | LayoutTests/media/video-black-bg-in-media-document-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698