Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 52a384cd39
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (13 sloc) 0.603 kb
<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=media-file.js></script>
<script src=video-test.js></script>
<script>
didReceiveLoadStartEvent = false;
video.addEventListener('loadstart', function() { didReceiveLoadStartEvent = true; });
video.src = findMediaFile("video", "content/test");
testExpected("video.networkState", HTMLMediaElement.NETWORK_EMPTY);
run("document.body.removeChild(video)");
testExpected("didReceiveLoadStartEvent", false);
endTest();
</script>
Jump to Line
Something went wrong with that request. Please try again.