Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / video-src-plus-source.html
blob257a779c58d3372c475f022affe46dea77ebd50a
1 <html>
2 <body>
3 <script src=video-test.js></script>
5 <script>
6 mediaElement.addEventListener('loadedmetadata', function() {
7 failTest("'loadedmetadata' event fired" );
8 }, true);
10 waitForEvent('loadstart', function () {
11 findMediaElement();
12 testExpected("relativeURL(video.currentSrc)", "content/bogus.mpeg");
13 consoleWrite("");
14 });
16 waitForEvent('error', function () {
17 findMediaElement();
18 testExpected("relativeURL(video.currentSrc)", "content/bogus.mpeg");
19 testExpected("mediaElement.error.code", MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED);
20 setTimeout(endTest, 200) ;
21 consoleWrite("");
22 });
23 </script>
25 <video src=content/bogus.mpeg controls>
26 <source src=content/test.mp4>
27 </video>
29 <p>Test that a &lt;source&gt; element is not used when a bogus 'src' attribute is present
30 </p>
32 </body>
33 </html>