mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Rename identity.browsers to identity.browser.
This commit is contained in:
@@ -6,16 +6,16 @@ var logger = require('../../../util/logger')
|
||||
module.exports = syrup.serial()
|
||||
.dependency(require('../support/properties'))
|
||||
.dependency(require('./display'))
|
||||
.dependency(require('./browsers'))
|
||||
.dependency(require('./browser'))
|
||||
.dependency(require('./phone'))
|
||||
.define(function(options, properties, display, browsers, phone) {
|
||||
.define(function(options, properties, display, browser, phone) {
|
||||
var log = logger.createLogger('device:plugins:identity')
|
||||
|
||||
function solve() {
|
||||
log.info('Solving identity')
|
||||
var identity = devutil.makeIdentity(options.serial, properties)
|
||||
identity.display = display
|
||||
identity.browsers = browsers
|
||||
identity.browser = browser
|
||||
identity.phone = phone
|
||||
return identity
|
||||
}
|
||||
|
||||
@@ -42,9 +42,9 @@ module.exports = syrup.serial()
|
||||
, identity.display.secure
|
||||
, identity.display.url
|
||||
)
|
||||
, new wire.DeviceBrowsersMessage(
|
||||
identity.browsers.selected
|
||||
, identity.browsers.apps.map(function(app) {
|
||||
, new wire.DeviceBrowserMessage(
|
||||
identity.browser.selected
|
||||
, identity.browser.apps.map(function(app) {
|
||||
return new wire.DeviceBrowserAppMessage(
|
||||
app.id
|
||||
, app.type
|
||||
|
||||
Reference in New Issue
Block a user