Skip to content

Commit 6e3dfe3

Browse files
Migrate MSE preload/play-then-seek-back coverage to WPT
Add the missing preload=none error case and post-seek assertions to external/wpt/media-source/, then drop the internal tests. Bug: 485677942 Change-Id: I5eb945ab23b7775a40602c4b80e005ea850d110b
1 parent 073a34f commit 6e3dfe3

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

media-source/mediasource-play-then-seek-back.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@
2424
{
2525
test.waitForCurrentTimeChange(mediaElement, function ()
2626
{
27+
assert_false(mediaElement.seeking, 'mediaElement is no longer seeking');
2728
assert_greater_than(mediaElement.currentTime, 0.0, 'Playback has started after seek.');
28-
test.done();
29+
test.waitForCurrentTimeChange(mediaElement, function() { test.done(); });
2930
});
3031
}
3132

@@ -42,6 +43,7 @@
4243
test.expectEvent(mediaElement, 'seeking', 'mediaElement');
4344
mediaElement.currentTime = 0.0;
4445
assert_true(mediaElement.seeking, 'mediaElement is seeking');
46+
assert_equals(mediaElement.currentTime, 0.0, 'Current time is 0.0');
4547

4648
test.waitForExpectedEvents(finishSeekThenPlay);
4749
}

media-source/mediasource-preload.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,11 @@
6464

6565
errorWithPreloadTest("auto", "revoked");
6666
errorWithPreloadTest("metadata", "revoked");
67+
errorWithPreloadTest("none", "revoked");
6768

6869
errorWithPreloadTest("auto", "corrupted");
6970
errorWithPreloadTest("metadata", "corrupted");
71+
errorWithPreloadTest("none", "corrupted");
7072
</script>
7173
</body>
7274
</html>

0 commit comments

Comments
 (0)