| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Test currentTime values when setting while HAVE_NOTHING for media
fragment URI.</title> | 4 <title>Test currentTime values when setting while HAVE_NOTHING for media
fragment URI.</title> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <video id="video"></video> | 7 <video id="video"></video> |
| 8 <script src=media-file.js></script> | 8 <script src=media-file.js></script> |
| 9 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 10 (Please avoid writing new tests using video-test.js) --> |
| 9 <script src=video-test.js></script> | 11 <script src=video-test.js></script> |
| 10 <script> | 12 <script> |
| 11 video = document.getElementById('video'); | 13 video = document.getElementById('video'); |
| 12 | 14 |
| 13 video.src = findMediaFile("video", "content/test") + "#t=2"; | 15 video.src = findMediaFile("video", "content/test") + "#t=2"; |
| 14 testExpected("video.currentTime", 0); | 16 testExpected("video.currentTime", 0); |
| 15 video.currentTime = 1; | 17 video.currentTime = 1; |
| 16 | 18 |
| 17 waitForEvent('loadedmetadata', function() | 19 waitForEvent('loadedmetadata', function() |
| 18 { | 20 { |
| 19 testExpected("video.currentTime", 1); | 21 testExpected("video.currentTime", 1); |
| 20 }); | 22 }); |
| 21 | 23 |
| 22 waitForEventAndEnd('seeked'); | 24 waitForEventAndEnd('seeked'); |
| 23 </script> | 25 </script> |
| 24 </body> | 26 </body> |
| 25 </html> | 27 </html> |
| OLD | NEW |