1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../../resources/js-test.js"></script>
8 description("Tests the RTCPeerConnection states.");
12 function stateChanged()
14 testPassed("stateChanged was called");
15 shouldBeEqualToString('pc.signalingState', 'closed');
19 shouldNotThrow('pc = new webkitRTCPeerConnection({iceServers:[]}, null);');
20 shouldBeEqualToString('pc.signalingState', 'stable');
21 pc
.onsignalingstatechange
= stateChanged
;
24 window
.jsTestIsAsync
= true;
25 window
.successfullyParsed
= true;