mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-28 12:45:27 +00:00
c29940202d
Conflicts: dom/media/tests/mochitest/test_getUserMedia_exceptions.html --HG-- extra : rebase_source : 61d146fe146021d9114a67d6577ca749b30e2d69
35 lines
897 B
HTML
35 lines
897 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 (answer) in 'have-remote-offer'"
|
|
});
|
|
|
|
runNetworkTest(function () {
|
|
var test = new PeerConnectionTest();
|
|
test.setMediaConstraints([{audio: true}], [{audio: true}]);
|
|
test.chain.removeAfter("PC_REMOTE_SET_REMOTE_DESCRIPTION");
|
|
|
|
test.chain.append([
|
|
function PC_REMOTE_SET_REMOTE_ANSWER(test) {
|
|
test.pcLocal._latest_offer.type = "answer";
|
|
test.pcRemote._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>
|