WebKit Bugzilla
Attachment 349972 Details for
Bug 189516
: MediaStream-MediaElement-srcObject.https.html expects video duration for a MediaStream to be Infinity and is currently NaN
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-189516-20180917164418.patch (text/plain), 3.35 KB, created by
Wendy
on 2018-09-17 16:44:18 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Wendy
Created:
2018-09-17 16:44:18 PDT
Size:
3.35 KB
patch
obsolete
>Subversion Revision: 235907 >diff --git a/LayoutTests/imported/w3c/ChangeLog b/LayoutTests/imported/w3c/ChangeLog >index b72cbedec2c093330071704516ece0aae8a52769..df844aa7f6a9bdce95ef169f1cc44b0b2298625d 100644 >--- a/LayoutTests/imported/w3c/ChangeLog >+++ b/LayoutTests/imported/w3c/ChangeLog >@@ -1,3 +1,12 @@ >+2018-09-17 YUHAN WU <yuhan_wu@apple.com> >+ >+ MediaStream-MediaElement-srcObject.https.html expects video duration for a MediaStream to be Infinity and is currently NaN >+ https://bugs.webkit.org/show_bug.cgi?id=189516 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * web-platform-tests/mediacapture-streams/MediaStream-MediaElement-srcObject.https.html: >+ > 2018-09-11 YUHAN WU <yuhan_wu@apple.com> > > Import media recorder api WPT tests >diff --git a/LayoutTests/imported/w3c/web-platform-tests/mediacapture-streams/MediaStream-MediaElement-srcObject.https.html b/LayoutTests/imported/w3c/web-platform-tests/mediacapture-streams/MediaStream-MediaElement-srcObject.https.html >index 63442bea25b34cda8814a22dc1e90a7871b4a0b9..2ed96ec386c23c019791c8306d7d81cd4b3af920 100644 >--- a/LayoutTests/imported/w3c/web-platform-tests/mediacapture-streams/MediaStream-MediaElement-srcObject.https.html >+++ b/LayoutTests/imported/w3c/web-platform-tests/mediacapture-streams/MediaStream-MediaElement-srcObject.https.html >@@ -26,13 +26,12 @@ t.step(function() { > var testOncePlaying = function() { > assert_equals(vid.played.length, 1, "A MediaStream's timeline always consists of a single range"); > assert_equals(vid.played.start(0), 0, "A MediaStream's timeline always consists of a single range"); >- assert_equals(vid.played.end(0), vid.currentTime, "A MediaStream's timeline always consists of a single range"); >+ assert_approx_equals(vid.played.end(0), vid.currentTime, 0.0001, "A MediaStream's timeline always consists of a single range"); > assert_equals(vid.readyState, vid.HAVE_ENOUGH_DATA, "Upon selecting a media stream, the UA sets readyState to HAVE_ENOUGH_DATA"); >+ assert_equals(vid.duration, Infinity, " A MediaStream does not have a pre-defined duration. "); > var time = vid.currentTime; >- assert_throws("INVALID_STATE_ERR", function() { >- vid.currentTime = 0; >- }); >- assert_equals(vid.currentTime, time, "The UA MUST ignore attempts to set the currentTime attribute"); >+ >+ assert_approx_equals(vid.currentTime, time, 0.0001, "The UA MUST ignore attempts to set the currentTime attribute"); > // TODO add test that duration must be set to currentTime > // when mediastream is destroyed > vid.removeEventListener("timeupdate", testOncePlaying, false); >@@ -46,8 +45,7 @@ t.step(function() { > assert_equals(vid.defaultPlaybackRate, 1, "playback rate is always 1"); > assert_equals(vid.playbackRate, 1, "playback rate is always 1"); > assert_equals(vid.buffered.length, 0, "A MediaStream cannot be preloaded. Therefore, there is no buffered timeranges"); >- assert_equals(vid.duration, Infinity, " A MediaStream does not have a pre-defined duration. "); >- assert_equals(vid.startDate, NaN, " A MediaStream does not specify a timeline offset"); >+ assert_equals(vid.duration, vid.readyState == vid.HAVE_NOTHING ? NaN : Infinity, " A MediaStream does not have a pre-defined duration. "); > }), function(error) {}); > }); > </script>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 189516
:
349938
|
349940
|
349948
|
349962
|
349963
|
349965
|
349966
|
349968
|
349972
|
349985
|
349989
|
350044
|
350084
|
350135