mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Update web-platform-tests to revision 10adbd6b133f1ccf77a27ed51ffd3e7a00a499ee
This commit is contained in:
parent
ecef8994e0
commit
1d6ba62c8f
119 changed files with 4676 additions and 523 deletions
|
@ -140,6 +140,15 @@ async function generateAnswer(offer) {
|
|||
return answer;
|
||||
}
|
||||
|
||||
// Helper function to generate offer using a freshly
|
||||
// created RTCPeerConnection object
|
||||
async function generateOffer() {
|
||||
const pc = new RTCPeerConnection();
|
||||
const offer = await pc.createOffer();
|
||||
pc.close();
|
||||
return offer;
|
||||
}
|
||||
|
||||
// Run a test function that return a promise that should
|
||||
// never be resolved. For lack of better options,
|
||||
// we wait for a time out and pass the test if the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue