Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / video-src-set.html
blobb40e0d9472e087b3100113aa14db6952709e6691
1 <video controls></video>
2 <div>Test that setting src attribute triggers load</div>
3 <script src=media-file.js></script>
4 <script src=video-test.js></script>
5 <script>
6 var mediaFile = findMediaFile("video", "content/test");
7 video.setAttribute('src', mediaFile);
9 waitForEvent('loadstart', function () {
10 testExpected("stripExtension(relativeURL(video.currentSrc))", stripExtension(mediaFile));
11 endTest();
12 } );
14 video.setAttribute('src', mediaFile);
15 </script>