这是indexloc提供的服务,不要输入任何密码
Skip to content

Add test for RTCIceCandidatePair interface #46655

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

dontcallmedom
Copy link
Contributor

idlTestObjects.iceTransport = iceTransport;

const iceCandidatePair = iceTransport.getSelectedCandidatePair();
assert_true(iceCandidatePair instanceof RTCIceCandidatePair,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For development, you should test that you get here and get a candidate pair - assert_not_null(iceCandidatePair).
think the test will only work if the candidate is selected before you get this far - which is timing dependent, but can't be depended on without waiting on a state change.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed; amended the test to trigger and await the proper ice connection state

@dontcallmedom
Copy link
Contributor Author

(this should probably wait for #46647 to be merged)

@dontcallmedom dontcallmedom merged commit 7b74bc1 into web-platform-tests:master Jun 13, 2024
@dontcallmedom dontcallmedom deleted the icecandidatepair-interface branch June 13, 2024 06:00
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jun 18, 2024
…ce, a=testonly

Automatic update from web-platform-tests
Add test for RTCIceCandidatePair interface (#46655)

* Add test for RTCIceCandidatePair interface

see w3c/webrtc-pc#2978

* Fix test to wait for ICE connection

per web-platform-tests/wpt#46655 (review)

* Fix assert name
--

wpt-commits: 7b74bc1d122c2d322329a25e0a6a99a4c2e9583c
wpt-pr: 46655
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Jun 19, 2024
…ce, a=testonly

Automatic update from web-platform-tests
Add test for RTCIceCandidatePair interface (#46655)

* Add test for RTCIceCandidatePair interface

see w3c/webrtc-pc#2978

* Fix test to wait for ICE connection

per web-platform-tests/wpt#46655 (review)

* Fix assert name
--

wpt-commits: 7b74bc1d122c2d322329a25e0a6a99a4c2e9583c
wpt-pr: 46655

UltraBlame original commit: 8c6ea51b01dcb2c252fb7e2fc73dc5bdefa2d350
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Jun 19, 2024
…ce, a=testonly

Automatic update from web-platform-tests
Add test for RTCIceCandidatePair interface (#46655)

* Add test for RTCIceCandidatePair interface

see w3c/webrtc-pc#2978

* Fix test to wait for ICE connection

per web-platform-tests/wpt#46655 (review)

* Fix assert name
--

wpt-commits: 7b74bc1d122c2d322329a25e0a6a99a4c2e9583c
wpt-pr: 46655

UltraBlame original commit: 8c6ea51b01dcb2c252fb7e2fc73dc5bdefa2d350
i3roly pushed a commit to i3roly/firefox-dynasty that referenced this pull request Jun 21, 2024
…ce, a=testonly

Automatic update from web-platform-tests
Add test for RTCIceCandidatePair interface (#46655)

* Add test for RTCIceCandidatePair interface

see w3c/webrtc-pc#2978

* Fix test to wait for ICE connection

per web-platform-tests/wpt#46655 (review)

* Fix assert name
--

wpt-commits: 7b74bc1d122c2d322329a25e0a6a99a4c2e9583c
wpt-pr: 46655
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Jun 24, 2024
…ce, a=testonly

Automatic update from web-platform-tests
Add test for RTCIceCandidatePair interface (#46655)

* Add test for RTCIceCandidatePair interface

see w3c/webrtc-pc#2978

* Fix test to wait for ICE connection

per web-platform-tests/wpt#46655 (review)

* Fix assert name
--

wpt-commits: 7b74bc1d122c2d322329a25e0a6a99a4c2e9583c
wpt-pr: 46655
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants