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

Unified Diff: LayoutTests/http/tests/media/media-source/mediasource-errors.html

Issue 330593005: HTMLMediaElement::webMediaPlayer() should never be null if m_readyState >= HAVE_METADATA (media eng… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: updated as per review comments Created 6 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/media/video-load-metadata-decode-error.cgi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.");
« no previous file with comments | « no previous file | LayoutTests/http/tests/media/video-load-metadata-decode-error.cgi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698