Updated Branches: refs/heads/master 57dcbcc16 -> c0f68da4d
Fixed whitespace and unit test for BlackBerry 10 Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/c0f68da4 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/c0f68da4 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/c0f68da4 Branch: refs/heads/master Commit: c0f68da4de34d47e27c35572727307a71db21ac3 Parents: 57dcbcc Author: Gord Tanner <[email protected]> Authored: Thu Nov 15 13:57:30 2012 -0500 Committer: Gord Tanner <[email protected]> Committed: Thu Nov 15 13:57:30 2012 -0500 ---------------------------------------------------------------------- lib/blackberry/plugin/air/device.js | 4 ++-- test/blackberry/qnx/test.device.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/c0f68da4/lib/blackberry/plugin/air/device.js ---------------------------------------------------------------------- diff --git a/lib/blackberry/plugin/air/device.js b/lib/blackberry/plugin/air/device.js index bd89ee1..d231de9 100644 --- a/lib/blackberry/plugin/air/device.js +++ b/lib/blackberry/plugin/air/device.js @@ -37,8 +37,8 @@ module.exports = { cordova: "2.2.0" }); }), - request = new blackberry.transport.RemoteFunctionCall("org/apache/cordova/getDeviceInfo"); - + request = new blackberry.transport.RemoteFunctionCall("org/apache/cordova/getDeviceInfo"); + request.addParam("id", callback); request.makeSyncCall(); http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/c0f68da4/test/blackberry/qnx/test.device.js ---------------------------------------------------------------------- diff --git a/test/blackberry/qnx/test.device.js b/test/blackberry/qnx/test.device.js index 1595b4f..58c1c8d 100644 --- a/test/blackberry/qnx/test.device.js +++ b/test/blackberry/qnx/test.device.js @@ -37,7 +37,7 @@ describe("blackberry qnx device", function () { //HACK: I know this is a sync call ;) device.getDeviceInfo({}, function (i) { info = i; }); - expect(info.platform).toBe("BB10"); + expect(info.platform).toBe("BlackBerry"); expect(info.version).toBe("NaN"); expect(info.name).toBe("Dev Alpha"); expect(info.uuid).toBe(1);
