| OLD | NEW | 
|   1 <!DOCTYPE html> |   1 <!DOCTYPE html> | 
|   2 <html> |   2 <html> | 
|   3     <head> |   3     <head> | 
|   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             function onWindowLoad(e) |   9             function onWindowLoad(e) | 
|  10             { |  10             { | 
|  11                 video = document.getElementById('video'); |  11                 video = document.getElementById('video'); | 
|  12  |  12  | 
|  13                 video.src = findMediaFile("video", "content/test"); |  13                 video.src = findMediaFile("video", "content/test"); | 
|  14                 testExpected("video.currentTime", 0); |  14                 testExpected("video.currentTime", 0); | 
|  15                 video.currentTime = 1; |  15                 video.currentTime = 1; | 
|  16                 testExpected("video.currentTime", 1); |  16                 testExpected("video.currentTime", 1); | 
|  17  |  17  | 
|  18                 waitForEvent('loadedmetadata', function() |  18                 waitForEvent('loadedmetadata', function() | 
|  19                 { |  19                 { | 
|  20                     testExpected("video.currentTime", 1); |  20                     testExpected("video.currentTime", 1); | 
|  21                 }); |  21                 }); | 
|  22  |  22  | 
|  23                 waitForEventAndEnd('seeked'); |  23                 waitForEventAndEnd('seeked'); | 
|  24             } |  24             } | 
|  25  |  25  | 
|  26             window.addEventListener('load', onWindowLoad, false); |  26             window.addEventListener('load', onWindowLoad, false); | 
|  27         </script> |  27         </script> | 
|  28     </head> |  28     </head> | 
|  29     <body> |  29     <body> | 
|  30         <video controls id="video"></video> |  30         <video controls id="video"></video> | 
|  31         <p>Test currentTime values when setting while HAVE_NOTHING.</p> |  31         <p>Test currentTime values when setting while HAVE_NOTHING.</p> | 
|  32         <br/> |  32         <br/> | 
|  33     </body> |  33     </body> | 
|  34 </html> |  34 </html> | 
| OLD | NEW |