Closed Bug 951892 Opened 11 years ago Closed 11 years ago

PeerConnection Mochitest in dom/media should check IceConnectionState

Categories

(Core :: WebRTC, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: drno, Assigned: drno)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

The test_peerConnection* tests in dom/media/test/mochitest currently do not verify that ICE was able to connect successfully as part of the tests. As an ICE connection is prerequisite for a MediaStream the IceConnectionState should be checked as part of these tests.
Assignee: nobody → drno
Blocks: 948249
Status: NEW → ASSIGNED
Attachment #8350367 - Flags: review?(adam)
Interdiff link (it's hard to get this out of the system since the old patch was on another bug): https://bugzilla.mozilla.org/attachment.cgi?oldid=8349053&action=interdiff&newid=8350367&headers=1
Comment on attachment 8350367 [details] [diff] [review] adding_ice_connection_checks_for_peerconnection_test.patch Review of attachment 8350367 [details] [diff] [review]: ----------------------------------------------------------------- Looks good. Once tiny nit in the comments, but otherwise is ready to go. ::: dom/media/tests/mochitest/pc.js @@ +975,5 @@ > */ > var self = this; > // This enables tests to validate that the next ice state is the one they expect to happen > this.next_ice_state = ""; // in most cases, the next state will be "checking", but in some tests "closed" > + // This allows register their own callbacks for ICE connection state changes s/allows register/allows tests to register/
Attachment #8350367 - Flags: review?(adam) → review+
Comment on attachment 8350367 [details] [diff] [review] adding_ice_connection_checks_for_peerconnection_test.patch Review of attachment 8350367 [details] [diff] [review]: ----------------------------------------------------------------- Sorry, missed this tiny spelling issue the first time. ::: dom/media/tests/mochitest/pc.js @@ +975,5 @@ > */ > var self = this; > // This enables tests to validate that the next ice state is the one they expect to happen > this.next_ice_state = ""; // in most cases, the next state will be "checking", but in some tests "closed" > + // This allows register their own callbacks for ICE connection state changes s/allows register/allows tests to register/ @@ +1371,5 @@ > + * > + * @param {function} onSuccess > + * Callback if ICE connection status is "connected". > + * @param {function} onFailure > + * Callback if ICE connection reaches a different state then s/then/than/
Attachment #8350367 - Attachment is obsolete: true
Fixed the spelling errors Adam pointed out.
Keywords: checkin-needed
Attachment #8350777 - Flags: review+
Attachment #8350777 - Flags: checkin?(adam)
Comment on attachment 8350777 [details] [diff] [review] adding_ice_connection_checks_for_peerconnection_test.patch https://hg.mozilla.org/integration/mozilla-inbound/rev/fc7cd53d9dd1
Attachment #8350777 - Flags: checkin?(adam) → checkin+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: