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

Unified Diff: LayoutTests/http/tests/media/media-source/mediasource-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/mediasource-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/mediasource-garbage-collection-before-sourceopen.html
similarity index 73%
rename from LayoutTests/http/tests/media/media-source/webkitmediasource-garbage-collection-before-sourceopen.html
rename to LayoutTests/http/tests/media/media-source/mediasource-garbage-collection-before-sourceopen.html
index cdbd66001564300b016140b901c5aa8daddb9027..4a333499a4917aaf225afe7e72269ffe8fbaa401 100644
--- a/LayoutTests/http/tests/media/media-source/webkitmediasource-garbage-collection-before-sourceopen.html
+++ b/LayoutTests/http/tests/media/media-source/mediasource-garbage-collection-before-sourceopen.html
@@ -5,19 +5,19 @@
</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>
+ <p>Tests that sourceopen event fires even if garbage collection happens between setting video.src &amp; the sourceopen event.</p>
<script type="text/javascript">
function createMediaSourceURL()
{
- var mediaSource = new WebKitMediaSource();
+ var mediaSource = new MediaSource();
var onSourceOpen = function (e)
{
sourceOpened = true;
consoleWrite("onSourceOpen called.");
endTest();
};
- consoleWrite("Setting webkitsourceopen event listener.");
- mediaSource.addEventListener('webkitsourceopen', onSourceOpen);
+ consoleWrite("Setting sourceopen event listener.");
+ mediaSource.addEventListener('sourceopen', onSourceOpen);
return window.URL.createObjectURL(mediaSource);
}
@@ -30,7 +30,7 @@
if (sourceOpened)
return;
- failTest('stalled event fired before webkitsourceopen');
+ failTest('stalled event fired before sourceopen');
};
video.addEventListener('stalled', onStalled);

Powered by Google App Engine
This is Rietveld 408576698