| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>RTCPeerConnection.createOffer</title> | 4 <title>RTCPeerConnection.createOffer</title> |
| 5 <script src="../../resources/testharness.js"></script> | 5 <script src="../../resources/testharness.js"></script> |
| 6 <script src="../../resources/testharnessreport.js"></script> | 6 <script src="../../resources/testharnessreport.js"></script> |
| 7 </head> | 7 </head> |
| 8 <body> | 8 <body> |
| 9 <script> | 9 <script> |
| 10 // Note: createOffer() calls in the test runner are successful if the | 10 // Note: createOffer() calls in the test runner are successful if the |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // Test closed connection | 71 // Test closed connection |
| 72 closedPC = new webkitRTCPeerConnection(null); | 72 closedPC = new webkitRTCPeerConnection(null); |
| 73 closedPC.close(); | 73 closedPC.close(); |
| 74 promise_test(function() { | 74 promise_test(function() { |
| 75 var invalidStateError = new DOMException('', 'InvalidStateError'); | 75 var invalidStateError = new DOMException('', 'InvalidStateError'); |
| 76 return promise_rejects(this, invalidStateError, closedPC.createOffer({ic
eRestart:true})); | 76 return promise_rejects(this, invalidStateError, closedPC.createOffer({ic
eRestart:true})); |
| 77 }, 'createOffer() with closed peer connection' ); | 77 }, 'createOffer() with closed peer connection' ); |
| 78 </script> | 78 </script> |
| 79 </body> | 79 </body> |
| 80 </html> | 80 </html> |
| OLD | NEW |