mirror of
https://github.com/servo/servo.git
synced 2025-08-17 11:25:35 +01:00
Update web-platform-tests to revision dc5cbf088edcdb266541d4e5a76149a2c6e716a0
This commit is contained in:
parent
1d40075f03
commit
079092dfea
2381 changed files with 90360 additions and 17722 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue