blob: 313d1e538018d17c041be0e005364cad4606bf52 [file] [log] [blame]
<video controls></video>
<p>Test that removing a media element from the tree when no media has been loaded does not generate a load event.</p>
<script src=video-test.js></script>
<script>
didReceiveLoadStartEvent = false;
video.addEventListener('loadstart', function() { didReceiveLoadStartEvent = true; });
video.src = "content/test.mp4";
testExpected("video.networkState", HTMLMediaElement.NETWORK_EMPTY);
run("document.body.removeChild(video)");
testExpected("didReceiveLoadStartEvent", false);
endTest();
</script>