OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>This tests that controls do not fade out when the video is playin
g remotely.</title> | 4 <title>This tests that controls do not fade out when the video is playin
g remotely.</title> |
5 <script src="../resources/testharness.js"></script> | 5 <script src="../resources/testharness.js"></script> |
6 <script src="../resources/testharnessreport.js"></script> | 6 <script src="../resources/testharnessreport.js"></script> |
7 <script src="media-file.js"></script> | 7 <script src="media-file.js"></script> |
8 <script src="media-controls.js"></script> | 8 <script src="media-controls.js"></script> |
9 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 | 9 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 |
10 (Please avoid writing new tests using video-test.js) --> | 10 (Please avoid writing new tests using video-test.js) --> |
11 <script src="video-test.js"></script> | 11 <script src="video-test.js"></script> |
12 </head> | 12 </head> |
13 <body> | 13 <body> |
14 <video controls loop></video> | 14 <video controls loop></video> |
15 <script> | 15 <script> |
16 var controls; | 16 var controls; |
17 var test; | 17 var test; |
18 | 18 |
19 function playing() | 19 function playing() |
(...skipping 23 matching lines...) Expand all Loading... |
43 { | 43 { |
44 test = t; | 44 test = t; |
45 findMediaElement(); | 45 findMediaElement(); |
46 video.src = findMediaFile("video", "content/test"); | 46 video.src = findMediaFile("video", "content/test"); |
47 video.addEventListener("playing", playing); | 47 video.addEventListener("playing", playing); |
48 video.play(); | 48 video.play(); |
49 }); | 49 }); |
50 </script> | 50 </script> |
51 </body> | 51 </body> |
52 </html> | 52 </html> |
OLD | NEW |