mirror of
https://github.com/servo/servo.git
synced 2025-08-23 22:35:33 +01:00
Update web-platform-tests to revision 66dc9c93f2c8ebd7c8fdc28fae20d92713c97806
This commit is contained in:
parent
e488ea750b
commit
12f4ae132e
1651 changed files with 8123 additions and 14152 deletions
|
@ -48,17 +48,27 @@ t.step(() => {
|
|||
assert_equals(stream5.getTrackById(audioTrack2.id), audioTrack2, "an ended track gets added via the MediaStream constructor");
|
||||
assert_false(stream5.active, "a MediaStream created using the MediaStream() constructor whose arguments are lists of MediaStreamTrack objects that are all ended, the MediaStream object MUST be created with its active attribute set to false");
|
||||
|
||||
stream.oninactive = t.step_func(() => {
|
||||
assert_false(stream.active);
|
||||
stream.getTracks().forEach(track => {
|
||||
assert_equals(track.readyState, "ended");
|
||||
});
|
||||
// Use a timeout to detect a misfire of the ended event.
|
||||
t.step_timeout(t.step_func_done());
|
||||
});
|
||||
|
||||
audioTrack1.stop();
|
||||
assert_equals(audioTrack1.readyState, "ended",
|
||||
"Stopping audioTrack1 marks it ended synchronously");
|
||||
|
||||
videoTrack.stop();
|
||||
assert_equals(videoTrack.readyState, "ended",
|
||||
"Stopping videoTrack marks it ended synchronously");
|
||||
|
||||
assert_false(stream.active,
|
||||
"The original MediaStream is marked inactive synchronously");
|
||||
assert_false(stream1.active,
|
||||
"MediaStream 1 is marked inactive synchronously");
|
||||
assert_false(stream2.active,
|
||||
"MediaStream 2 is marked inactive synchronously");
|
||||
assert_false(stream3.active,
|
||||
"MediaStream 3 is marked inactive synchronously");
|
||||
assert_false(stream4.active,
|
||||
"MediaStream 4 is marked inactive synchronously");
|
||||
|
||||
// Use a timeout to detect a misfire of the ended event.
|
||||
t.step_timeout(t.step_func_done());
|
||||
})
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue