Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Unified Diff: LayoutTests/http/tests/media/media-source/webkitmediasource-closed-on-htmlmediaelement-destruction.html

Issue 245893002: Improve unprefixed MediaSource test coverage. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698