From fdea336ed2113cb15030b6e9eaa23f3421c28c97 Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Tue, 7 Sep 2010 10:56:52 -0700 Subject: [PATCH] Stringify "browser" for saucelabs support --- .gitignore | 2 ++ Readme.md | 1 + lib/soda/client.js | 4 +++- 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2bfe547 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.DS_Store +test.js \ No newline at end of file diff --git a/Readme.md b/Readme.md index 70ae5c1..200367a 100644 --- a/Readme.md +++ b/Readme.md @@ -7,5 +7,6 @@ ## More Information + - [Saucelabs Browsers](http://saucelabs.com/products/docs/sauce-ondemand/browsers) - [Selenese Introduction](http://seleniumhq.org/docs/02_selenium_basics.html) - [Command Reference](http://release.seleniumhq.org/selenium-core/0.8.0/reference.html). \ No newline at end of file diff --git a/lib/soda/client.js b/lib/soda/client.js index dcfb17f..59f10b5 100644 --- a/lib/soda/client.js +++ b/lib/soda/client.js @@ -32,7 +32,9 @@ var Client = exports = module.exports = function Client(options) { this.port = options.port || 4444; this.browser = options.browser || 'firefox'; this.url = options.url; - if (this.browser[0] !== '*') this.browser = '*' + this.browser; + if (this.browser[0] !== '*') { + this.browser = '*' + this.browser; + } EventEmitter.call(this); };