WebCore:
[WebKit-https.git] / LayoutTests / media / remove-from-document.html
1 <video controls></video>
2 <p>Test that removing a media element from the tree pauses playback but does not unload the media.</p>
3 <script src=video-test.js></script>
4 <script>
5 waitForEvent('load', function () {
6     test("video.networkState == HTMLMediaElement.LOADED");
7     test("!video.paused");
8     run("document.body.removeChild(video)");
9     test("video.networkState == HTMLMediaElement.LOADED");
10     test("video.paused");
11     endTest();
12 } );
13 video.src = "content/test.mp4";
14 video.play();
15 </script>