Reviewed by Adele.
[WebKit-https.git] / LayoutTests / media / video-src-remove.html
1 <body>
2 <div>
3 Test that removing src attribute triggers load
4 </div>
5 <script src=video-test.js></script>
6 <video src=bogus controls>
7     <source src=content/test.mp4></source>
8 </video>
9 <script>
10 video = media = document.getElementsByTagName('video')[0];
11 waitForEvent('emptied', function () {
12     video.removeAttribute('src')
13     waitForEventTestAndEnd('begin', "relativeURL(video.currentSrc) == 'content/test.mp4'");
14 });
15 </script>