OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../media/media-file.js"></script> | 4 <script src="../../media/media-file.js"></script> |
| 5 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 6 (Please avoid writing new tests using video-test.js) --> |
5 <script src="../../media/video-test.js"></script> | 7 <script src="../../media/video-test.js"></script> |
6 <script type="text/javascript"> | 8 <script type="text/javascript"> |
7 var videoElement; | 9 var videoElement; |
8 var standaloneMediaDocument; | 10 var standaloneMediaDocument; |
9 var skipOnFirstEmptyLoad = 0; | 11 var skipOnFirstEmptyLoad = 0; |
10 | 12 |
11 function frameLoaded() | 13 function frameLoaded() |
12 { | 14 { |
13 if (++skipOnFirstEmptyLoad == 1) | 15 if (++skipOnFirstEmptyLoad == 1) |
14 return; | 16 return; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 <body> | 49 <body> |
48 <p> | 50 <p> |
49 This tests that media element in a standalone media document cannot
be focused directly using focus() method or by mouse click. | 51 This tests that media element in a standalone media document cannot
be focused directly using focus() method or by mouse click. |
50 </p> | 52 </p> |
51 <iframe id="videoframe" width=380 height=330 onload="frameLoaded()"></if
rame> | 53 <iframe id="videoframe" width=380 height=330 onload="frameLoaded()"></if
rame> |
52 <script type="text/javascript"> | 54 <script type="text/javascript"> |
53 document.getElementById("videoframe").src = "../../media/" + findMed
iaFile("video", "content/test"); | 55 document.getElementById("videoframe").src = "../../media/" + findMed
iaFile("video", "content/test"); |
54 </script> | 56 </script> |
55 </body> | 57 </body> |
56 </html> | 58 </html> |
OLD | NEW |