blob: e2d77514148c50db2dc2980334314f6cb748ff0f [file] [log] [blame]
<video controls></video>
<p>Test that removing a media element from the tree pauses playback but does not unload the media.</p>
<script src=video-test.js></script>
<script>
waitForEvent('load', function () {
test("video.networkState == HTMLMediaElement.LOADED");
test("!video.paused");
run("document.body.removeChild(video)");
test("video.networkState == HTMLMediaElement.LOADED");
test("video.paused");
document.body.offsetTop;
endTest();
} );
video.src = "content/test.mp4";
video.play();
</script>