From 2da05ab7417c6092a499bb604ce09f3fba7e4aea Mon Sep 17 00:00:00 2001 From: OniOni Date: Thu, 9 May 2013 14:20:40 -0700 Subject: [PATCH] Style fixes. --- app/appium.js | 2 +- app/ios.js | 50 +++++++++++++++++++++++++------------------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/app/appium.js b/app/appium.js index 83e82e74a..87bfe25fd 100644 --- a/app/appium.js +++ b/app/appium.js @@ -391,7 +391,7 @@ Appium.prototype.invoke = function() { var iosOpts = { rest: this.rest , app: this.args.app - , ipa: this.args.ipa + , ipa: this.args.ipa , bundleId: this.args.bundleId , udid: this.args.udid , verbose: !this.args.quiet diff --git a/app/ios.js b/app/ios.js index bc7cce83f..060f896a4 100644 --- a/app/ios.js +++ b/app/ios.js @@ -215,10 +215,10 @@ IOS.prototype.start = function(cb, onDie) { }; async.series([ - function (cb) { me.cleanup(cb) }, - function (cb) { me.setDeviceType(cb) }, - function (cb) { me.installToRealDevice(cb) }, - function (cb) { createInstruments(cb) } + function (cb) { me.cleanup(cb); }, + function (cb) { me.setDeviceType(cb); }, + function (cb) { me.installToRealDevice(cb); }, + function (cb) { createInstruments(cb); } ], cb); } }; @@ -232,23 +232,23 @@ IOS.prototype.installToRealDevice = function (cb) { me = this; async.waterfall([ - function (cb) { d.isInstalled(me.bundleId, cb) }, + function (cb) { d.isInstalled(me.bundleId, cb); }, function (installed, cb) { if (installed) { - logger.info("Bundle found on device, removing before reinstalling."); - d.remove(me.bundleId, cb); - } else { - logger.debug("Nothing found on device, going ahead and installing."); - cb(); - } + logger.info("Bundle found on device, removing before reinstalling."); + d.remove(me.bundleId, cb); + } else { + logger.debug("Nothing found on device, going ahead and installing."); + cb(); + } }, - function (cb) { d.installAndWait(me.ipa, me.bundleId, cb) } + function (cb) { d.installAndWait(me.ipa, me.bundleId, cb); } ], cb); } else { logger.debug("No device id or app, not installing to real device."); cb(); } -} +}; IOS.prototype.setDeviceType = function(cb) { if (this.udid) { @@ -354,18 +354,18 @@ IOS.prototype.cleanupAppState = function(cb) { } else { logger.info("No plist files found to remove"); if (me.realDevice) { - me.realDevice.remove(me.bundleId, function (err) { - if (err) { - logger.error("Could not remove " + me.bundleId + " from device"); - cb(err); - } else { - logger.info("Removed " + me.bundleId); - cb(); - } - }); - } else { - cb(); - } + me.realDevice.remove(me.bundleId, function (err) { + if (err) { + logger.error("Could not remove " + me.bundleId + " from device"); + cb(err); + } else { + logger.info("Removed " + me.bundleId); + cb(); + } + }); + } else { + cb(); + } } } });