Closed
Bug 1038494
Opened 10 years ago
Closed 10 years ago
Test case for track interfaces when consuming a MediaStream
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
mozilla33
People
(Reporter: shelly, Assigned: shelly)
References
Details
(Whiteboard: [FT:Stream3])
Attachments
(1 file, 2 obsolete files)
18.02 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
The current test case (test_mediatrack_events_and_consuming_ms.html) is kindda fragile, so re write it.
Assignee | ||
Comment 1•10 years ago
|
||
Though consuming a media stream won't meet the case where playback has ended before events are fired, I think it would be better to make the two test cases as identical as possible, since they are testing the same scenario but consuming different resources. I also break out the part of testing event identities, mixing two testing goal into one test seem not good.
Attachment #8456049 -
Flags: review?(roc)
Comment on attachment 8456049 [details] [diff] [review]
Rewrite test cases of track interfaces when consuming a media stream
Review of attachment 8456049 [details] [diff] [review]:
-----------------------------------------------------------------
Sorry about the delay
::: content/media/test/test_mediatrack_events.html
@@ +18,5 @@
> + 'HTMLMediaElement::AudioTracks() property should be available.');
> + isnot(element.videoTracks, undefined,
> + 'HTMLMediaElement::VideoTracks() property should be available.');
> +
> + function verify_event(e, type) {
verifyEvent
Attachment #8456049 -
Flags: review?(roc) → review-
Assignee | ||
Comment 3•10 years ago
|
||
This patch has updated the function name to verifyEvent.
Thanks!
Attachment #8456049 -
Attachment is obsolete: true
Attachment #8459427 -
Flags: review?(roc)
Attachment #8459427 -
Flags: review?(roc) → review+
Assignee | ||
Comment 4•10 years ago
|
||
Try result:
https://tbpl.mozilla.org/?tree=Try&rev=289780b43c0a
https://tbpl.mozilla.org/?tree=Try&rev=2edbafcf0cb1
Keywords: checkin-needed
Comment 5•10 years ago
|
||
Assignee: nobody → slin
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
Assignee | ||
Updated•10 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 7•10 years ago
|
||
Assignee | ||
Comment 8•10 years ago
|
||
Comment on attachment 8465279 [details] [diff] [review]
New fix for this test case
Review of attachment 8465279 [details] [diff] [review]:
-----------------------------------------------------------------
::: content/media/test/test_mediatrack_consuming_mediastream.html
@@ -52,2 @@
> is(element.audioTracks.length, 0, 'The length of audioTracks should be 0.');
> - is(videoOnremovetrack, 1, 'Calls of onremovetrack on videoTracks should be 1.');
I think it should be fine to remove the check of onremovetrack on video element, because 1. It should really be checked at the onended event handler of MediaStream or the onended event handler of MediaStreamTrack, and we implement them neither, and 2. We are still checking the length of video.audioTracks and video.videoTracks.
Assignee | ||
Comment 9•10 years ago
|
||
Try server result with failing platform:
(Android 2.3 Emulator try opt test mochitest-4 )
https://tbpl.mozilla.org/?tree=Try&rev=0bc5c4782685
(b2g_emulator_vm try opt test mochitest-3)
https://tbpl.mozilla.org/?tree=Try&rev=72b4bd387fe4
Assignee | ||
Comment 10•10 years ago
|
||
Move the fix to bug 1047307.
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•10 years ago
|
Attachment #8465279 -
Attachment is obsolete: true
You need to log in
before you can comment on or make changes to this bug.
Description
•