Skip to content

Commit

Permalink
Issue appium#3957 changed undefined to null in ios-device-specs.js an…
Browse files Browse the repository at this point in the history
…d corrected parameter of call of parseLocalizableStrings function in ios-contoller.js
  • Loading branch information
ktronic80 committed Dec 1, 2014
1 parent 732b7ac commit 393579a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/devices/ios/ios-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -624,15 +624,15 @@ iOSController.toggleLocationServices = function (cb) {
};

iOSController.getStrings = function (language, stringFile, cb) {
this.parseLocalizableStrings(function () {
this.parseLocalizableStrings(language, stringFile, function () {
var strings = this.localizableStrings;
if (strings && strings.length >= 1) strings = strings[0];

cb(null, {
status: status.codes.Success.code
, value: strings
});
}.bind(this), language, stringFile);
}.bind(this));
};

iOSController.executeAtom = function (atom, args, cb, alwaysDefaultFrame) {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/ios-device-specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe('IOS', function () {
});

it('should return a dictionary with data from Localizable.strings file', function (done) {
device.parseLocalizableStrings(device.args.language, undefined, function () {
device.parseLocalizableStrings(device.args.language, null, function () {
device.localizableStrings.should.eql({ 'main.button.computeSum' : 'Compute Sum' });
done();
});
Expand Down

0 comments on commit 393579a

Please sign in to comment.