Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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: "setLocalDescription (offer) 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_LOCAL_OFFER", |
michael@0 | 27 | function (test) { |
michael@0 | 28 | test.pcRemote.setLocalDescriptionAndFail(test.pcLocal._last_offer, |
michael@0 | 29 | function(err) { |
michael@0 | 30 | is(err.name, "INVALID_STATE", "Error is INVALID_STATE"); |
michael@0 | 31 | test.next(); |
michael@0 | 32 | } ); |
michael@0 | 33 | } |
michael@0 | 34 | ]]); |
michael@0 | 35 | |
michael@0 | 36 | test.run(); |
michael@0 | 37 | }); |
michael@0 | 38 | </script> |
michael@0 | 39 | </pre> |
michael@0 | 40 | </body> |
michael@0 | 41 | </html> |