OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <title>Test pause() pauses the clock immediately</title> | 3 <title>Test pause() pauses the clock immediately</title> |
4 <script src=media-file.js></script> | 4 <script src=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=video-test.js></script> | 7 <script src=video-test.js></script> |
6 <script> | 8 <script> |
7 var timeAfterPause; | 9 var timeAfterPause; |
8 | 10 |
9 function test() | 11 function test() |
10 { | 12 { |
11 findMediaElement(); | 13 findMediaElement(); |
12 video.src = findMediaFile("video", "content/test"); | 14 video.src = findMediaFile("video", "content/test"); |
13 waitForEvent("canplay", canplay); | 15 waitForEvent("canplay", canplay); |
14 waitForEvent("playing", playing); | 16 waitForEvent("playing", playing); |
(...skipping 25 matching lines...) Expand all Loading... |
40 testExpected("(video.played.end(0) - timeAfterPause)", 0); | 42 testExpected("(video.played.end(0) - timeAfterPause)", 0); |
41 endTest(); | 43 endTest(); |
42 } | 44 } |
43 </script> | 45 </script> |
44 </head> | 46 </head> |
45 <body onload="test()"> | 47 <body onload="test()"> |
46 <p>Test that pausing the media element has an immediate effect on the cl
ock.</p> | 48 <p>Test that pausing the media element has an immediate effect on the cl
ock.</p> |
47 <video controls></video> | 49 <video controls></video> |
48 </body> | 50 </body> |
49 </html> | 51 </html> |
50 | |
OLD | NEW |