Bug 853858: Move PeerConnectionTest instance reference into global scope r=jesup

This commit is contained in:
Adam Roach [:abr] 2013-04-04 17:08:42 -05:00
parent 48a7e71857
commit 16c6fc801d
6 changed files with 6 additions and 6 deletions

View File

@ -15,8 +15,8 @@
title: "Basic audio-only peer connection"
});
var test = new PeerConnectionTest();
runTest(function () {
var test = new PeerConnectionTest();
test.setMediaConstraints([{audio: true}], [{audio: true}]);
test.run();
}, true);

View File

@ -16,8 +16,8 @@
title: "Basic audio/video (separate) peer connection"
});
var test = new PeerConnectionTest();
runTest(function () {
var test = new PeerConnectionTest();
test.setMediaConstraints([{audio: true}, {video: true}],
[{audio: true}, {video: true}]);
test.run();

View File

@ -16,8 +16,8 @@
title: "Basic audio/video (combined) peer connection"
});
var test = new PeerConnectionTest();
runTest(function () {
var test = new PeerConnectionTest();
test.setMediaConstraints([{audio: true}, {video: true}],
[{audio: true}, {video: true}]);
test.run();

View File

@ -15,8 +15,8 @@
title: "Basic video-only peer connection"
});
var test = new PeerConnectionTest();
runTest(function () {
var test = new PeerConnectionTest();
test.setMediaConstraints([{video: true}], [{video: true}]);
test.run();
}, true);

View File

@ -79,8 +79,8 @@
]
];
var test = new PeerConnectionTest();
runTest(function () {
var test = new PeerConnectionTest();
test.setMediaConstraints([{audio: true}], [{audio: true}]);
test.chain.append(steps);
test.run();

View File

@ -106,8 +106,8 @@
]
];
var test = new PeerConnectionTest();
runTest(function () {
var test = new PeerConnectionTest();
test.setMediaConstraints([{audio: true, video: true}], [ ]);
test.chain.replaceAfter("PC_LOCAL_GUM", steps);
test.run();