Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / media / remove-while-loading.html
blob04da81eeaf5b1a8ef7d75710c9df5c98482446b1
1 <video></video>
2 <p>Test that removing a media element from the tree while loading does not crash.</p>
3 <script src=../../media-resources/media-file.js></script>
4 <script src=../../media-resources/video-test.js></script>
5 <script>
6 waitForEvent('loadedmetadata', function () {
7 run("document.body.removeChild(video)");
8 endTestLater();
9 } );
11 // Find a supported media file.
12 var mediaFile = findMediaFile("video", "content/test");
13 var mimeType = mimeTypeForFile(mediaFile);
15 video.src = "http://127.0.0.1:8000/resources/load-and-stall.cgi?name=../../../media/" + mediaFile + "&mimeType=" + mimeType + "&stallAt=100000";
16 </script>