Update web-platform-tests to revision dc5cbf088edcdb266541d4e5a76149a2c6e716a0

This commit is contained in:
Ms2ger 2016-09-09 09:40:35 +02:00
parent 1d40075f03
commit 079092dfea
2381 changed files with 90360 additions and 17722 deletions

View file

@ -1,3 +1,5 @@
// Copyright © 2016 Chromium authors and World Wide Web Consortium, (Massachusetts Institute of Technology, ERCIM, Keio University, Beihang).
// Extract & return the resolution string from a filename, if any.
function resolutionFromFilename(filename)
{
@ -64,10 +66,9 @@ function mediaSourceConfigChangeTest(directory, idA, idB, description)
test.waitForExpectedEvents(function()
{
assert_false(sourceBuffer.updating, "updating");
assert_greater_than(mediaSource.duration, 2, "duration");
// Truncate the presentation to a duration of 2 seconds.
mediaSource.duration = 2;
sourceBuffer.remove(2, Infinity);
assert_true(sourceBuffer.updating, "updating");
test.expectEvent(sourceBuffer, 'updatestart', 'sourceBuffer');
@ -75,6 +76,17 @@ function mediaSourceConfigChangeTest(directory, idA, idB, description)
test.expectEvent(sourceBuffer, 'updateend', 'sourceBuffer');
});
test.waitForExpectedEvents(function()
{
assert_false(sourceBuffer.updating, "updating");
assert_greater_than(mediaSource.duration, 2, "duration");
// Truncate the presentation to a duration of 2 seconds.
mediaSource.duration = 2;
test.expectEvent(mediaElement, "durationchange");
});
test.waitForExpectedEvents(function()
{
assert_false(sourceBuffer.updating, "updating");