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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-remove.html

Issue 2102323002: MSE: Experimental support for new abort and duration behavior (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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: third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-remove.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-remove.html b/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-remove.html
index f41d455a9f51e50a6e767727a1413f567bb3a424..46b48656685e45071f47e4e891a3d9805032a45b 100644
--- a/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-remove.html
+++ b/third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-remove.html
@@ -137,21 +137,22 @@
mediaSource.duration = 10;
test.expectEvent(sourceBuffer, "updatestart");
- test.expectEvent(sourceBuffer, "abort");
test.expectEvent(sourceBuffer, "updateend");
sourceBuffer.remove(1, 2);
assert_true(sourceBuffer.updating, "updating");
- sourceBuffer.abort();
+ assert_throws('InvalidStateError',
+ function() { sourceBuffer.abort(); },
+ 'abort() of remove() throws an exception');
- assert_false(sourceBuffer.updating, "updating");
+ assert_true(sourceBuffer.updating, "updating");
test.waitForExpectedEvents(function()
{
test.done();
});
- }, "Test aborting a remove operation.");
+ }, "Test aborting a remove operation throws exception.");
mediasource_testafterdataloaded(function(test, mediaElement, mediaSource, segmentInfo, sourceBuffer, mediaData)
{

Powered by Google App Engine
This is Rietveld 408576698