| 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 | 5 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 |
| 6 (Please avoid writing new tests using video-test.js) --> | 6 (Please avoid writing new tests using video-test.js) --> |
| 7 <script src=video-test.js></script> | 7 <script src=video-test.js></script> |
| 8 <script> | 8 <script> |
| 9 var timeAfterPause; | 9 var timeAfterPause; |
| 10 | 10 |
| 11 function test() | 11 function test() |
| 12 { | 12 { |
| 13 findMediaElement(); | 13 findMediaElement(); |
| 14 video.src = findMediaFile("video", "content/test"); | 14 video.src = findMediaFile("video", "content/test"); |
| 15 waitForEvent("canplay", canplay); | 15 waitForEvent("canplay", canplay); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 42 testExpected("(video.played.end(0) - timeAfterPause)", 0); | 42 testExpected("(video.played.end(0) - timeAfterPause)", 0); |
| 43 endTest(); | 43 endTest(); |
| 44 } | 44 } |
| 45 </script> | 45 </script> |
| 46 </head> | 46 </head> |
| 47 <body onload="test()"> | 47 <body onload="test()"> |
| 48 <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> |
| 49 <video controls></video> | 49 <video controls></video> |
| 50 </body> | 50 </body> |
| 51 </html> | 51 </html> |
| OLD | NEW |