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

Unified Diff: LayoutTests/http/tests/media/media-source/webkitmediasource-sourcebufferlist-crash.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-sourcebufferlist-crash.html
diff --git a/LayoutTests/http/tests/media/media-source/webkitmediasource-sourcebufferlist-crash.html b/LayoutTests/http/tests/media/media-source/webkitmediasource-sourcebufferlist-crash.html
deleted file mode 100644
index 34513adc0efae20f59632b949ed190fdecb042a1..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/media/media-source/webkitmediasource-sourcebufferlist-crash.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <script src="/js-test-resources/js-test.js"></script>
- <script src="/media-resources/video-test.js"></script>
- <script type="text/javascript">
- function onSourceOpen(e)
- {
- consoleWrite("Calling addSourceBuffer()");
- e.target.addSourceBuffer('video/webm;codecs="vp8"');
-
- consoleWrite("Running garbage collector to cleanup the SourceBuffer reference returned by addSourceBuffer()");
- gc();
-
- document.querySelector('#v').src = "";
- }
-
- function onSourceClose(e)
- {
- consoleWrite("onSourceClose");
- endTest();
- }
-
- function main()
- {
- var video = document.querySelector('#v');
- var mediaSource = new WebKitMediaSource();
-
- mediaSource.addEventListener('webkitsourceopen', onSourceOpen);
- mediaSource.addEventListener('webkitsourceclose', onSourceClose);
-
- video.src = URL.createObjectURL(mediaSource);
- }
- </script>
- </head>
- <body onload="main()">
- <video id="v"></video>
- <p>Verify that we don't crash on close if the MediaSource.sourceBuffers holds the last reference to its SourceBuffer objects.</p>
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698