Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head> |
michael@0 | 4 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
michael@0 | 5 | <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 6 | <script type="application/javascript" src="head.js"></script> |
michael@0 | 7 | <script type="application/javascript" src="mediaStreamPlayback.js"></script> |
michael@0 | 8 | <script type="application/javascript" src="pc.js"></script> |
michael@0 | 9 | <script type="application/javascript" src="templates.js"></script> |
michael@0 | 10 | </head> |
michael@0 | 11 | <body> |
michael@0 | 12 | <pre id="test"> |
michael@0 | 13 | <script type="application/javascript"> |
michael@0 | 14 | createHTML({ |
michael@0 | 15 | bug: "784519", |
michael@0 | 16 | title: "setRemoteDescription (answer) in 'have-remote-offer'" |
michael@0 | 17 | }); |
michael@0 | 18 | |
michael@0 | 19 | var test; |
michael@0 | 20 | runTest(function () { |
michael@0 | 21 | test = new PeerConnectionTest(); |
michael@0 | 22 | test.setMediaConstraints([{audio: true}], [{audio: true}]); |
michael@0 | 23 | test.chain.removeAfter("PC_REMOTE_SET_REMOTE_DESCRIPTION"); |
michael@0 | 24 | |
michael@0 | 25 | test.chain.append([[ |
michael@0 | 26 | "PC_REMOTE_SET_REMOTE_ANSWER", |
michael@0 | 27 | function (test) { |
michael@0 | 28 | test.pcLocal._last_offer.type="answer"; |
michael@0 | 29 | test.pcRemote.setRemoteDescriptionAndFail(test.pcLocal._last_offer, |
michael@0 | 30 | function(err) { |
michael@0 | 31 | is(err.name, "INVALID_STATE", "Error is INVALID_STATE"); |
michael@0 | 32 | test.next(); |
michael@0 | 33 | } ); |
michael@0 | 34 | } |
michael@0 | 35 | ]]); |
michael@0 | 36 | |
michael@0 | 37 | test.run(); |
michael@0 | 38 | }); |
michael@0 | 39 | </script> |
michael@0 | 40 | </pre> |
michael@0 | 41 | </body> |
michael@0 | 42 | </html> |