| Index: LayoutTests/http/tests/media/media-source/webkitmediasource-closed-on-htmlmediaelement-destruction.html
|
| diff --git a/LayoutTests/http/tests/media/media-source/webkitmediasource-closed-on-htmlmediaelement-destruction.html b/LayoutTests/http/tests/media/media-source/webkitmediasource-closed-on-htmlmediaelement-destruction.html
|
| deleted file mode 100644
|
| index 7a16ea61dbdd4d522fa5de48727b24689ab9944f..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/http/tests/media/media-source/webkitmediasource-closed-on-htmlmediaelement-destruction.html
|
| +++ /dev/null
|
| @@ -1,60 +0,0 @@
|
| -<!DOCTYPE html>
|
| -<html>
|
| - <head>
|
| - <script src="/js-test-resources/js-test.js"></script>
|
| - <script src="/media-resources/video-test.js"></script>
|
| - <script src="webkitmediasource-util.js"></script>
|
| -
|
| - <script>
|
| - window.jsTestIsAsync = true;
|
| -
|
| - var ms = new WebKitMediaSource();
|
| -
|
| - function sourceOpened()
|
| - {
|
| - consoleWrite("sourceOpened called.");
|
| - var vid = document.getElementById('vid');
|
| - var buffer = ms.addSourceBuffer('video/webm; codecs="vorbis,vp8"');
|
| -
|
| - MediaSourceTest.expectSourceState(ms, "open");
|
| -
|
| - consoleWrite("Removing video element from DOM.");
|
| - vid.parentNode.removeChild(vid);
|
| - vid = null;
|
| -
|
| - consoleWrite("Running the garbage collector.");
|
| - asyncGC(function() {
|
| - MediaSourceTest.expectSourceState(ms, "closed");
|
| -
|
| - try {
|
| - buffer.timestampOffset = 42;
|
| - failTest("Expected an exception");
|
| - } catch (e) {
|
| - consoleWrite("Setting timestampOffset failed as expected: " + e.name);
|
| - }
|
| -
|
| - endTest();
|
| - });
|
| - }
|
| -
|
| - function sourceClosed()
|
| - {
|
| - consoleWrite("sourceClosed called.");
|
| - }
|
| -
|
| - function onLoad()
|
| - {
|
| - waitForEventAndFail('error');
|
| -
|
| - ms.addEventListener('webkitsourceopen', sourceOpened);
|
| - ms.addEventListener('webkitsourceclose', sourceClosed);
|
| -
|
| - document.getElementById('vid').src = window.URL.createObjectURL(ms);
|
| - }
|
| - </script>
|
| - </head>
|
| - <body onload="onLoad()">
|
| - <video id="vid"></video>
|
| - <p>Tests that the MediaSource is closed when the HTMLMediaElement is destroyed.</p>
|
| - </body>
|
| -</html>
|
|
|