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

Side by Side Diff: LayoutTests/media/video-scales-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 canPlayThrough(event) { 6 function canPlayThrough(event) {
7 var video = event.target; 7 var video = event.target;
8 testExpected(video.offsetWidth, 200); 8 testExpected(video.offsetWidth, 200);
9 testExpected(video.offsetHeight, 164); 9 testExpected(video.offsetHeight, 164);
10 endTest(); 10 endTest();
11 } 11 }
12 12
13 function iframeLoad() { 13 function iframeLoad() {
14 var iframe = document.querySelector("iframe"); 14 var iframe = document.querySelector("iframe");
15 var video = iframe.contentDocument.querySelector("video"); 15 var video = iframe.contentDocument.querySelector("video");
16 video.addEventListener("canplaythrough", canPlayThrough); 16 video.addEventListener("canplaythrough", canPlayThrough);
17 video.load() 17 video.load()
18 } 18 }
19 19
20 function load() { 20 function load() {
21 var iframe = document.querySelector("iframe"); 21 var iframe = document.querySelector("iframe");
22 iframe.onload = iframeLoad; 22 iframe.onload = iframeLoad;
23 iframe.src = findMediaFile("video", "../../../media/content/coun ting"); 23 iframe.src = findMediaFile("video", "content/counting");
24 } 24 }
25 </script> 25 </script>
26 </head> 26 </head>
27 27
28 <body onload="load()"> 28 <body onload="load()">
29 <p>Test that video media documents scale to fit undersized containers.</ p> 29 <p>Test that video media documents scale to fit undersized containers.</ p>
30 <iframe style="width: 200px; height: 200px;"></iframe> 30 <iframe style="width: 200px; height: 200px;"></iframe>
31 </body> 31 </body>
32 </html> 32 </html>
OLDNEW
« no previous file with comments | « LayoutTests/media/video-frame-size-change.html ('k') | LayoutTests/media/video-scales-in-media-document-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698