Update web-platform-tests to revision 10adbd6b133f1ccf77a27ed51ffd3e7a00a499ee

This commit is contained in:
WPT Sync Bot 2020-03-24 08:19:05 +00:00
parent ecef8994e0
commit 1d6ba62c8f
119 changed files with 4676 additions and 523 deletions

View file

@ -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