-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Add test for RTCIceCandidatePair interface #46655
Conversation
webrtc/idlharness.https.window.js
Outdated
idlTestObjects.iceTransport = iceTransport; | ||
|
||
const iceCandidatePair = iceTransport.getSelectedCandidatePair(); | ||
assert_true(iceCandidatePair instanceof RTCIceCandidatePair, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
(this should probably wait for #46647 to be merged) |
…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
…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
…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
…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
…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
see w3c/webrtc-pc#2978