test_peerConnection_setLocalOfferInHaveRemoteOffer.html (787B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <script type="application/javascript" src="pc.js"></script> 5 </head> 6 <body> 7 <pre id="test"> 8 <script type="application/javascript"> 9 createHTML({ 10 bug: "784519", 11 title: "setLocalDescription (offer) in 'have-remote-offer'" 12 }); 13 14 runNetworkTest(function () { 15 const test = new PeerConnectionTest(); 16 test.setMediaConstraints([{audio: true}], [{audio: true}]); 17 test.chain.removeAfter("PC_REMOTE_SET_REMOTE_DESCRIPTION"); 18 19 test.chain.append([ 20 async function PC_REMOTE_SET_LOCAL_OFFER(test) { 21 const err = await test.pcRemote.setLocalDescriptionAndFail(test.pcLocal._latest_offer); 22 is(err.name, "InvalidModificationError", "Error is InvalidModificationError"); 23 } 24 ]); 25 26 return test.run(); 27 }); 28 </script> 29 </pre> 30 </body> 31 </html>