mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +01:00
Update web-platform-tests to revision ddfc95cf0493ae147a4f6a4d7be8eff1a0c23098
This commit is contained in:
parent
1f6a864ab5
commit
7e6290451f
832 changed files with 16026 additions and 2649 deletions
|
@ -68,9 +68,10 @@ function mediaSourceConfigChangeTest(directory, idA, idB, description)
|
|||
assert_false(sourceBuffer.updating, "updating");
|
||||
|
||||
// Truncate the presentation to a duration of 2 seconds.
|
||||
// First, explicitly remove the media beyond 2 seconds.
|
||||
sourceBuffer.remove(2, Infinity);
|
||||
|
||||
assert_true(sourceBuffer.updating, "updating");
|
||||
assert_true(sourceBuffer.updating, "sourceBuffer.updating during range removal");
|
||||
test.expectEvent(sourceBuffer, 'updatestart', 'sourceBuffer');
|
||||
test.expectEvent(sourceBuffer, 'update', 'sourceBuffer');
|
||||
test.expectEvent(sourceBuffer, 'updateend', 'sourceBuffer');
|
||||
|
@ -78,11 +79,13 @@ function mediaSourceConfigChangeTest(directory, idA, idB, description)
|
|||
|
||||
test.waitForExpectedEvents(function()
|
||||
{
|
||||
assert_false(sourceBuffer.updating, "updating");
|
||||
assert_false(sourceBuffer.updating, "sourceBuffer.updating prior to duration reduction");
|
||||
assert_greater_than(mediaSource.duration, 2, "duration");
|
||||
|
||||
// Truncate the presentation to a duration of 2 seconds.
|
||||
// Complete the truncation of presentation to 2 second
|
||||
// duration.
|
||||
mediaSource.duration = 2;
|
||||
assert_false(sourceBuffer.updating, "sourceBuffer.updating synchronously after duration reduction");
|
||||
|
||||
test.expectEvent(mediaElement, "durationchange");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue