Index: LayoutTests/http/tests/media/media-source/mediasource-errors.html |
diff --git a/LayoutTests/http/tests/media/media-source/mediasource-errors.html b/LayoutTests/http/tests/media/media-source/mediasource-errors.html |
index 6f61b0e558531cbecd0bd2f5a1655ee01067559f..bb839522155b8a2d222ba16f977886464d8a5c76 100644 |
--- a/LayoutTests/http/tests/media/media-source/mediasource-errors.html |
+++ b/LayoutTests/http/tests/media/media-source/mediasource-errors.html |
@@ -105,8 +105,6 @@ |
test.expectEvent(mediaElement, "error", "mediaElement error."); |
test.expectEvent(mediaSource, "sourceended", "mediaSource ended."); |
- test.expectEvent(mediaSource, "sourceclose", "mediaSource closed."); |
- |
mediaSource.endOfStream("decode"); |
}); |
@@ -114,9 +112,7 @@ |
{ |
assert_true(mediaElement.error != null); |
assert_equals(mediaElement.error.code, MediaError.MEDIA_ERR_DECODE); |
- |
- assert_equals(mediaSource.sourceBuffers.length, 0); |
- assert_equals(mediaSource.readyState, "closed"); |
+ assert_equals(mediaSource.readyState, "ended"); |
test.done(); |
}); |
}, "Signaling 'decode' error via endOfStream() after initialization segment has been appended and the HTMLMediaElement has reached HAVE_METADATA."); |
@@ -136,8 +132,6 @@ |
test.expectEvent(mediaElement, "error", "mediaElement error."); |
test.expectEvent(mediaSource, "sourceended", "mediaSource ended."); |
- test.expectEvent(mediaSource, "sourceclose", "mediaSource closed."); |
- |
mediaSource.endOfStream("network"); |
}); |
@@ -145,9 +139,7 @@ |
{ |
assert_true(mediaElement.error != null); |
assert_equals(mediaElement.error.code, MediaError.MEDIA_ERR_NETWORK); |
- |
- assert_equals(mediaSource.sourceBuffers.length, 0); |
- assert_equals(mediaSource.readyState, "closed"); |
+ assert_equals(mediaSource.readyState, "ended"); |
test.done(); |
}); |
}, "Signaling 'network' error via endOfStream() after initialization segment has been appended and the HTMLMediaElement has reached HAVE_METADATA."); |