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

Unified Diff: LayoutTests/http/tests/media/media-source/webkitmediasource-garbage-collection-before-sourceopen.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-garbage-collection-before-sourceopen.html
diff --git a/LayoutTests/http/tests/media/media-source/webkitmediasource-garbage-collection-before-sourceopen.html b/LayoutTests/http/tests/media/media-source/webkitmediasource-garbage-collection-before-sourceopen.html
deleted file mode 100644
index cdbd66001564300b016140b901c5aa8daddb9027..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/media/media-source/webkitmediasource-garbage-collection-before-sourceopen.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <script src="/media-resources/video-test.js"></script>
- </head>
- <body>
- <video autoplay controls="controls" id='vid'></video>
- <p>Tests that webkitsourceopen event fires even if garbage collection happens between setting video.src &amp; the webkitsourceopen event.</p>
- <script type="text/javascript">
- function createMediaSourceURL()
- {
- var mediaSource = new WebKitMediaSource();
- var onSourceOpen = function (e)
- {
- sourceOpened = true;
- consoleWrite("onSourceOpen called.");
- endTest();
- };
- consoleWrite("Setting webkitsourceopen event listener.");
- mediaSource.addEventListener('webkitsourceopen', onSourceOpen);
- return window.URL.createObjectURL(mediaSource);
- }
-
- function start()
- {
- var video = document.getElementById('vid');
- var sourceOpened = false;
- var onStalled = function (e)
- {
- if (sourceOpened)
- return;
-
- failTest('stalled event fired before webkitsourceopen');
- };
- video.addEventListener('stalled', onStalled);
-
- var url = createMediaSourceURL();
- consoleWrite("Running garbage collector.");
- gc();
-
- consoleWrite("Setting video.src to object URL.");
- video.src = url;
- }
- start();
- </script>
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698