karma-sauce-launcher
Advanced tools
Comparing version 0.1.1 to 0.1.2
11
index.js
@@ -52,3 +52,3 @@ // TODO(vojta): | ||
var SauceLabsBrowser = function(id, args, sauceConnect, /* config.sauceLabs */ config, logger, emitter) { | ||
var SauceLabsBrowser = function(id, args, sauceConnect, /* config.sauceLabs */ config, logger, emitter, helper) { | ||
config = config || {}; | ||
@@ -89,3 +89,3 @@ | ||
var start = function(url) { | ||
var options = { | ||
var options = helper.merge(config.options, args, { | ||
browserName: args.browserName, | ||
@@ -101,6 +101,6 @@ version: args.version || '', | ||
process.env.BUILD_NUMBER || process.env.BUILD_TAG || | ||
process.env.CIRCLE_BUILD_NUM || null | ||
process.env.CIRCLE_BUILD_NUM || null, | ||
'device-orientation': args.deviceOrientation || null | ||
}); | ||
}; | ||
url = url + '?id=' + id; | ||
@@ -115,2 +115,3 @@ | ||
log.info('%s session at https://saucelabs.com/tests/%s', browserName, driver.sessionID); | ||
log.debug('WebDriver channel instantiated, opening ' + url); | ||
@@ -117,0 +118,0 @@ driver.get(url, heartbeat); |
{ | ||
"name": "karma-sauce-launcher", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "A Karma plugin. Launch any browser on SauceLabs!", | ||
@@ -38,4 +38,5 @@ "main": "index.js", | ||
"Santiago Suarez Ordoñez <santiycr@gmail.com>", | ||
"Johannes Würbach <johannes.wuerbach@googlemail.com>" | ||
"Johannes Würbach <johannes.wuerbach@googlemail.com>", | ||
"yhwh <ferrero.nicolas@gmail.com>" | ||
] | ||
} |
@@ -68,2 +68,3 @@ # karma-sauce-launcher | ||
- `platform` which platform ? (defaults to any) | ||
- `deviceOrientation` portrait or landscape (mobile testing option only) | ||
@@ -70,0 +71,0 @@ For an example project of, check out [AngularJS](https://github.com/angular/angular.js/blob/master/.travis.yml). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8692
131
76