mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 887d08e63a19b14acf3217df77f12c121a792fed
This commit is contained in:
parent
97ad913dc2
commit
a41065a1f4
65 changed files with 1433 additions and 463 deletions
|
@ -254,6 +254,9 @@ async function doSignalingHandshake(localPc, remotePc, options={}) {
|
|||
// This should work for RTCSctpTransport, RTCDtlsTransport and RTCIceTransport.
|
||||
function waitForState(transport, state) {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (transport.state == state) {
|
||||
resolve();
|
||||
}
|
||||
const eventHandler = () => {
|
||||
if (transport.state == state) {
|
||||
transport.removeEventListener('statechange', eventHandler, false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue