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

Unified Diff: LayoutTests/http/tests/media/media-source/mediasource-config-changes.js

Issue 319213002: Fix MediaSource.duration setter behavior to match the current spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix release build buster 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/media-source/mediasource-duration.html » ('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-config-changes.js
diff --git a/LayoutTests/http/tests/media/media-source/mediasource-config-changes.js b/LayoutTests/http/tests/media/media-source/mediasource-config-changes.js
index 6fc72782f48949f40f7e45d786bb94482a0d3481..7e8ba725d4857201fa0d6437fcce84cd9d41138a 100644
--- a/LayoutTests/http/tests/media/media-source/mediasource-config-changes.js
+++ b/LayoutTests/http/tests/media/media-source/mediasource-config-changes.js
@@ -64,7 +64,18 @@ function mediaSourceConfigChangeTest(directory, idA, idB, description)
test.waitForExpectedEvents(function()
{
// Truncate the presentation to a duration of 2 seconds.
+ assert_false(sourceBuffer.updating, "sourceBuffer.updating");
+
mediaSource.duration = 2;
+
+ assert_true(sourceBuffer.updating, "sourceBuffer.updating");
+ test.expectEvent(sourceBuffer, "updatestart");
+ test.expectEvent(sourceBuffer, "update");
+ test.expectEvent(sourceBuffer, "updateend");
+ });
+
+ test.waitForExpectedEvents(function()
+ {
mediaSource.endOfStream();
if (expectResizeEvents) {
« no previous file with comments | « no previous file | LayoutTests/http/tests/media/media-source/mediasource-duration.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698