Bot Browser files moved to /bot/browser/
because android files will be a different and will need to add more files for Android.
There was a CL to move the browser files form bot/browser/ to /bot/ as i thought it will be the same files used for Android.
R=andresp@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/23529004
git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@7119 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/tools/rtcbot/bot/bot.js b/tools/rtcbot/bot/browser/bot.js
similarity index 100%
rename from tools/rtcbot/bot/bot.js
rename to tools/rtcbot/bot/browser/bot.js
diff --git a/tools/rtcbot/bot/index.html b/tools/rtcbot/bot/browser/index.html
similarity index 92%
rename from tools/rtcbot/bot/index.html
rename to tools/rtcbot/bot/browser/index.html
index 9d4758c..57bf596 100644
--- a/tools/rtcbot/bot/index.html
+++ b/tools/rtcbot/bot/browser/index.html
@@ -7,5 +7,5 @@
// in the file PATENTS. All contributing project authors may
// be found in the AUTHORS file in the root of the source tree.
-->
-<script src="api.js"></script>
+<script src="../api.js"></script>
<script src="bot.js"></script>
diff --git a/tools/rtcbot/botmanager.js b/tools/rtcbot/botmanager.js
index 76e50b4..cd88f19 100644
--- a/tools/rtcbot/botmanager.js
+++ b/tools/rtcbot/botmanager.js
@@ -116,7 +116,7 @@
}
}
-// BrowserBot spawns a process to open "http://localhost:8080/bot/".
+// BrowserBot spawns a process to open "http://localhost:8080/bot/browser".
//
// That page once loaded, connects to the websocket server run by BotManager
// and exposes the bot api.
@@ -128,7 +128,7 @@
BrowserBot.prototype = {
spawnBotProcess_: function () {
this.log('Spawning browser');
- child.exec('google-chrome "http://localhost:8080/bot/"');
+ child.exec('google-chrome "http://localhost:8080/bot/browser/"');
},
__proto__: Bot.prototype
@@ -149,7 +149,7 @@
this.log('Spawning Android device with serial ' + this.serialNumber_);
var runChrome = 'adb -s ' + this.serialNumber_ + ' shell am start ' +
'-n com.android.chrome/com.google.android.apps.chrome.Main ' +
- '-d http://localhost:8080/bot/';
+ '-d http://localhost:8080/bot/browser/';
child.exec(runChrome, function (error, stdout, stderr) {
if (error) {
this.log(error);