blob: 8fdc9fbf2409397abc6d50a0f61df683fe519eee [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../js/resources/js-test-pre.js"></script>
</head>
<body>
<script>
description("Tests the RTCPeerConnection states.");
var pc = null;
function stateChanged()
{
testPassed("stateChanged was called");
shouldBeEqualToString('pc.signalingState', 'closed');
finishJSTest();
}
shouldNotThrow('pc = new webkitRTCPeerConnection({iceServers:[]}, null);');
shouldBeEqualToString('pc.signalingState', 'stable');
pc.onsignalingstatechange = stateChanged;
pc.close();
window.jsTestIsAsync = true;
window.successfullyParsed = true;
</script>
<script src="../js/resources/js-test-post.js"></script>
</body>
</html>