mirror of
https://github.com/classilla/tenfourfox.git
synced 2025-01-23 18:32:20 +00:00
34 lines
840 B
HTML
34 lines
840 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<script type="application/javascript" src="pc.js"></script>
|
|
</head>
|
|
<body>
|
|
<pre id="test">
|
|
<script type="application/javascript">
|
|
createHTML({
|
|
bug: "784519",
|
|
title: "setRemoteDescription (offer) in 'have-local-offer'"
|
|
});
|
|
|
|
runNetworkTest(function () {
|
|
var test = new PeerConnectionTest();
|
|
test.setMediaConstraints([{audio: true}], [{audio: true}]);
|
|
test.chain.removeAfter("PC_LOCAL_SET_LOCAL_DESCRIPTION");
|
|
|
|
test.chain.append([
|
|
function PC_LOCAL_SET_REMOTE_OFFER(test) {
|
|
test.pcLocal._pc.setRemoteDescription(test.pcLocal._latest_offer)
|
|
.then(generateErrorCallback('setRemoteDescription should fail'),
|
|
err =>
|
|
is(err.name, "InvalidStateError", "Error is InvalidStateError"));
|
|
}
|
|
]);
|
|
|
|
test.run();
|
|
});
|
|
</script>
|
|
</pre>
|
|
</body>
|
|
</html>
|