OLD | NEW |
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 canPlayThrough(event) { | 8 function canPlayThrough(event) { |
9 var video = event.target; | 9 var video = event.target; |
10 testExpected(video.offsetWidth, 200); | 10 testExpected(video.offsetWidth, 200); |
11 testExpected(video.offsetHeight, 164); | 11 testExpected(video.offsetHeight, 164); |
12 endTest(); | 12 endTest(); |
13 } | 13 } |
14 | 14 |
(...skipping 10 matching lines...) Expand all Loading... |
25 iframe.src = findMediaFile("video", "content/counting"); | 25 iframe.src = findMediaFile("video", "content/counting"); |
26 } | 26 } |
27 </script> | 27 </script> |
28 </head> | 28 </head> |
29 | 29 |
30 <body onload="load()"> | 30 <body onload="load()"> |
31 <p>Test that video media documents scale to fit undersized containers.</
p> | 31 <p>Test that video media documents scale to fit undersized containers.</
p> |
32 <iframe style="width: 200px; height: 200px;"></iframe> | 32 <iframe style="width: 200px; height: 200px;"></iframe> |
33 </body> | 33 </body> |
34 </html> | 34 </html> |
OLD | NEW |