1 <video src=bogus></video>
3 Test that changing src attribute triggers load when network state is empty.<br>
4 Test that it does not trigger load when network state is non-empty.
6 <script src=video-test.js></script>
8 waitForEvent('emptied', function () {
9 test('video.networkState == HTMLMediaElement.EMPTY');
10 video.setAttribute('src', 'content/test.mp4')
11 waitForEventAndTest('begin', "relativeURL(video.currentSrc) == 'content/test.mp4'");
12 waitForEvent('load', function () {
13 test('video.networkState != HTMLMediaElement.EMPTY');
14 video.setAttribute('src', 'content/test.wav');
15 waitForEventAndFail('begin');
16 setTimeout(endTest, 500);