Style fixes.

This commit is contained in:
OniOni
2013-05-09 14:20:40 -07:00
parent 1a0be0d773
commit 2da05ab741
2 changed files with 26 additions and 26 deletions

View File

@@ -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

View File

@@ -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();
}
}
}
});