-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 constructing RTCSctpTransport #6147
Add test for constructing RTCSctpTransport #6147
Conversation
Firefox (nightly)Testing web-platform-tests at revision 7d06454 All results1 test ran/webrtc/RTCSctpTransport-constructor.html
|
Sauce (safari)Testing web-platform-tests at revision 7d06454 All results1 test ran/webrtc/RTCSctpTransport-constructor.html
|
Chrome (unstable)Testing web-platform-tests at revision 7d06454 All results1 test ran/webrtc/RTCSctpTransport-constructor.html
|
Sauce (MicrosoftEdge)Testing web-platform-tests at revision 7d06454 All results1 test ran/webrtc/RTCSctpTransport-constructor.html
|
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.
Just two minor changes
const pc = new RTCPeerConnection(); | ||
return pc.setRemoteDescription(offer) | ||
.then(() => pc.createAnswer()); | ||
} |
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.
Just a nit pick: this function body has a 4 space indent!
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.
Removed the helper code now that I can directly import it from the merged helper.js
@@ -0,0 +1,95 @@ | |||
<!doctype html> | |||
<meta charset="utf-8"> | |||
<title>RTCSctpTransport constructor</title> |
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.
Need to add this to interfaces.html
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.
This require quite a bit of refactoring on interfaces.html
since it involves async initialization. I will put that in a separate PR together with other pending interface tests.
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.
I will put that in a separate PR together with other pending interface tests.
Sounds like a good plan!
816643d
to
789f46e
Compare
Rebased and ready to merge. |
w3c-test:mirror |
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.
Excellent
@@ -0,0 +1,95 @@ | |||
<!doctype html> | |||
<meta charset="utf-8"> | |||
<title>RTCSctpTransport constructor</title> |
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.
I will put that in a separate PR together with other pending interface tests.
Sounds like a good plan!
|
||
// The following helper functions are called from RTCPeerConnection-helper.js: | ||
// generateOffer() | ||
// generateAnswer() |
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.
This is awesome :)
If I have time, I will try to update all the other tests with this comment.
Add basic test for indirect construction of
RTCSctpTransport
. According to the spec. The only time anRTCSctpTransport
is constructed is duringsetLocalDescription
orsetRemoteDescription
with answer containing a data media line.