| <video controls></video> |
| <script src=media-file.js></script> |
| <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 |
| (Please avoid writing new tests using video-test.js) --> |
| <script src=video-test.js></script> |
| <script> |
| testExpected("video.currentSrc", ""); |
| var mediaFile = findMediaFile("video", "content/test"); |
| video.src = mediaFile; |
| testExpected("video.currentSrc", ""); |
| |
| waitForEvent('canplaythrough', function () { |
| testExpected("stripExtension(relativeURL(video.currentSrc))", stripExtension(mediaFile)); |
| endTest(); |
| } ); |
| |
| video.load(); |
| </script> |