Selecting bot_type changed to be specified in the test file

Selecting bot_type changed to be specified in the test file instead of
specify it in the running command.

Now we can write test for rtcBot that run one bot on chrome for android
and the other bot on chrome for desktop.

R=andresp@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/23069004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@7458 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
houssainy@google.com
2014-10-15 15:01:11 +00:00
parent e93cbd13d5
commit 3e2f8ff36c
6 changed files with 53 additions and 22 deletions

View File

@ -17,7 +17,7 @@ function testOfferAnswer(peer1, peer2) {
establishCall);
function createPeerConnection(done) {
this.createPeerConnection(done, test.fail);
this.createPeerConnection(null, done, test.fail);
}
function establishCall(pc1, pc2) {
@ -49,6 +49,6 @@ function expectedCall() {
test.done();
}
test.wait( [ test.spawnBot.bind(test, "alice"),
test.spawnBot.bind(test, "bob") ],
test.wait( [ test.spawnBot.bind(test, "alice", "chrome"),
test.spawnBot.bind(test, "bob", "chrome") ],
testOfferAnswer);