OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 | 2 |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <title>local video</title> | 5 <title>local video</title> |
6 | 6 |
7 <script src=media-file.js></script> | 7 <script src=media-file.js></script> |
| 8 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 9 (Please avoid writing new tests using video-test.js) --> |
8 <script src=video-test.js></script> | 10 <script src=video-test.js></script> |
9 | 11 |
10 <script> | 12 <script> |
11 function ended() | 13 function ended() |
12 { | 14 { |
13 testExpected("video.duration", 0, '>'); | 15 testExpected("video.duration", 0, '>'); |
14 endTest(); | 16 endTest(); |
15 } | 17 } |
16 | 18 |
17 function playing() | 19 function playing() |
(...skipping 19 matching lines...) Expand all Loading... |
37 consoleWrite(""); | 39 consoleWrite(""); |
38 } | 40 } |
39 | 41 |
40 </script> | 42 </script> |
41 </head> | 43 </head> |
42 <body onload="start()"> | 44 <body onload="start()"> |
43 <video controls autobuffer></video> | 45 <video controls autobuffer></video> |
44 <p>Tests that duration is known after playback ended.</p> | 46 <p>Tests that duration is known after playback ended.</p> |
45 </body> | 47 </body> |
46 </html> | 48 </html> |
OLD | NEW |