Skip to content

Commit

Permalink
new device launching strategy needs to use correct version
Browse files Browse the repository at this point in the history
also, don't override retina/tall/64bit opts when user doesn't actually
pass in deviceName cap.
cc @dandoveralba
  • Loading branch information
jlipps committed Mar 17, 2014
1 parent 255ad39 commit 9089f09
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/devices/ios/ios.js
Expand Up @@ -765,9 +765,11 @@ IOS.prototype.getDeviceString = function () {
} else if (device.indexOf("ipad") !== -1) {
isiPhone = false;
}
isTall = isiPhone && (device.indexOf("4-inch") !== -1);
isRetina = (device.indexOf("retina") !== -1);
is64bit = (device.indexOf("64-bit") !== -1);
if (this.args.deviceName !== this.args.device) {
isTall = isiPhone && (device.indexOf("4-inch") !== -1);
isRetina = (device.indexOf("retina") !== -1);
is64bit = (device.indexOf("64-bit") !== -1);
}
}

var iosDeviceString = isiPhone ? "iPhone" : "iPad";
Expand All @@ -790,7 +792,7 @@ IOS.prototype.getDeviceString = function () {
}
}
if (this.iOSSDKVersion >= 7.1) {
iosDeviceString += " - Simulator - iOS " + this.args.version;
iosDeviceString += " - Simulator - iOS " + this.iOSSDKVersion;
}
return iosDeviceString;
};
Expand Down

1 comment on commit 9089f09

@jlipps
Copy link
Member Author

@jlipps jlipps commented on 9089f09 Mar 17, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is iossdkversion always 7.1? if you're running on 6.1, it won't be...?

i guess this could be (this.args.version || this.iOSSDKVersion) in case someone did not pass in version?

Please sign in to comment.