3 <script src=video-test.js></script>
6 mediaElement.addEventListener('loadedmetadata', function() {
7 failTest("'loadedmetadata' event fired" );
10 waitForEvent('loadstart', function () {
12 testExpected("relativeURL(video.currentSrc)", "content/bogus.mpeg");
16 waitForEvent('error', function () {
18 testExpected("relativeURL(video.currentSrc)", "content/bogus.mpeg");
19 testExpected("mediaElement.error.code", MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED);
20 setTimeout(endTest, 200) ;
25 <video src=content/bogus.mpeg controls>
26 <source src=content/test.mp4>
29 <p>Test that a <source> element is not used when a bogus 'src' attribute is present