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) |
{ |