Update paths for plugin unit tests Reviewed by Jeffrey Heifetz <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/5dad31c1 Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/5dad31c1 Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/5dad31c1 Branch: refs/heads/master Commit: 5dad31c1842024ddfa9364def6e664fad6138f6d Parents: 94fa3ff Author: Hasan Ahmad <[email protected]> Authored: Mon Apr 29 15:22:48 2013 -0400 Committer: Bryan Higgins <[email protected]> Committed: Fri May 3 10:13:32 2013 -0400 ---------------------------------------------------------------------- .../bin/test/plugins/Accelerometer/index.js | 2 +- blackberry10/bin/test/plugins/Battery/index.js | 2 +- blackberry10/bin/test/plugins/Camera/index.js | 2 +- blackberry10/bin/test/plugins/Device/index.js | 4 ++-- blackberry10/bin/test/plugins/Logger/index.js | 6 +++--- .../bin/test/plugins/NetworkStatus/index.js | 2 +- .../bin/test/plugins/Notification/index.js | 2 +- .../bin/test/plugins/SplashScreen/index.js | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/5dad31c1/blackberry10/bin/test/plugins/Accelerometer/index.js ---------------------------------------------------------------------- diff --git a/blackberry10/bin/test/plugins/Accelerometer/index.js b/blackberry10/bin/test/plugins/Accelerometer/index.js index a016219..e907d56 100644 --- a/blackberry10/bin/test/plugins/Accelerometer/index.js +++ b/blackberry10/bin/test/plugins/Accelerometer/index.js @@ -14,7 +14,7 @@ * limitations under the License. */ describe("Accelerometer", function () { - var _apiDir = __dirname + "./../../../templates/project/plugins/Accelerometer/", + var _apiDir = __dirname + "./../../../templates/project/plugins/Accelerometer/src/blackberry10/", index, callback, result = { http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/5dad31c1/blackberry10/bin/test/plugins/Battery/index.js ---------------------------------------------------------------------- diff --git a/blackberry10/bin/test/plugins/Battery/index.js b/blackberry10/bin/test/plugins/Battery/index.js index 3495629..a9c610a 100644 --- a/blackberry10/bin/test/plugins/Battery/index.js +++ b/blackberry10/bin/test/plugins/Battery/index.js @@ -16,7 +16,7 @@ describe("Battery", function () { - var _apiDir = __dirname + "./../../../templates/project/plugins/Battery/", + var _apiDir = __dirname + "./../../../templates/project/plugins/Battery/src/blackberry10/", index, callback, result = { http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/5dad31c1/blackberry10/bin/test/plugins/Camera/index.js ---------------------------------------------------------------------- diff --git a/blackberry10/bin/test/plugins/Camera/index.js b/blackberry10/bin/test/plugins/Camera/index.js index e629a41..d498a56 100644 --- a/blackberry10/bin/test/plugins/Camera/index.js +++ b/blackberry10/bin/test/plugins/Camera/index.js @@ -14,7 +14,7 @@ * limitations under the License. */ describe("Camera", function () { - var _apiDir = __dirname + "./../../../templates/project/plugins/Camera/", + var _apiDir = __dirname + "./../../../templates/project/plugins/Camera/src/blackberry10/", index, mockDone, mockCancel, http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/5dad31c1/blackberry10/bin/test/plugins/Device/index.js ---------------------------------------------------------------------- diff --git a/blackberry10/bin/test/plugins/Device/index.js b/blackberry10/bin/test/plugins/Device/index.js index 9792b09..d6b6d47 100644 --- a/blackberry10/bin/test/plugins/Device/index.js +++ b/blackberry10/bin/test/plugins/Device/index.js @@ -16,12 +16,12 @@ describe("Device", function () { - var _apiDir = __dirname + "./../../../templates/project/plugins/Device/", + var _apiDir = __dirname + "./../../../templates/project/plugins/Device/src/blackberry10/", index, result = { ok: jasmine.createSpy() }; - + beforeEach(function () { index = require(_apiDir + "index"); }); http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/5dad31c1/blackberry10/bin/test/plugins/Logger/index.js ---------------------------------------------------------------------- diff --git a/blackberry10/bin/test/plugins/Logger/index.js b/blackberry10/bin/test/plugins/Logger/index.js index e5dc9f9..4cd0dca 100644 --- a/blackberry10/bin/test/plugins/Logger/index.js +++ b/blackberry10/bin/test/plugins/Logger/index.js @@ -16,12 +16,12 @@ describe("Logger", function () { - var _apiDir = __dirname + "./../../../templates/project/plugins/Logger/", + var _apiDir = __dirname + "./../../../templates/project/plugins/Logger/src/blackberry10/", index, result = { noResult: jasmine.createSpy("noResult") }; - + beforeEach(function () { index = require(_apiDir + "index"); }); @@ -32,7 +32,7 @@ describe("Logger", function () { describe("logLevel", function () { beforeEach(function () { - spyOn(console, "log"); + spyOn(console, "log"); GLOBAL.PluginResult = function () { return result; }; http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/5dad31c1/blackberry10/bin/test/plugins/NetworkStatus/index.js ---------------------------------------------------------------------- diff --git a/blackberry10/bin/test/plugins/NetworkStatus/index.js b/blackberry10/bin/test/plugins/NetworkStatus/index.js index 7d0371c..9aa270d 100644 --- a/blackberry10/bin/test/plugins/NetworkStatus/index.js +++ b/blackberry10/bin/test/plugins/NetworkStatus/index.js @@ -16,7 +16,7 @@ describe("NetworkStatus", function () { - var _apiDir = __dirname + "./../../../templates/project/plugins/NetworkStatus/", + var _apiDir = __dirname + "./../../../templates/project/plugins/NetworkStatus/src/blackberry10/", index, result = { ok: jasmine.createSpy(), http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/5dad31c1/blackberry10/bin/test/plugins/Notification/index.js ---------------------------------------------------------------------- diff --git a/blackberry10/bin/test/plugins/Notification/index.js b/blackberry10/bin/test/plugins/Notification/index.js index 2b585f8..a8f680f 100644 --- a/blackberry10/bin/test/plugins/Notification/index.js +++ b/blackberry10/bin/test/plugins/Notification/index.js @@ -38,7 +38,7 @@ function mockAndTestDialog(htmlmessage, title, dialogType, buttonLabel) { } describe("Notification", function () { - var _apiDir = __dirname + "./../../../templates/project/plugins/Notification/", + var _apiDir = __dirname + "./../../../templates/project/plugins/Notification/src/blackberry10/", index, success = function() {}, fail = function() {}, http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/5dad31c1/blackberry10/bin/test/plugins/SplashScreen/index.js ---------------------------------------------------------------------- diff --git a/blackberry10/bin/test/plugins/SplashScreen/index.js b/blackberry10/bin/test/plugins/SplashScreen/index.js index 1dcccee..ef010df 100644 --- a/blackberry10/bin/test/plugins/SplashScreen/index.js +++ b/blackberry10/bin/test/plugins/SplashScreen/index.js @@ -14,7 +14,7 @@ * limitations under the License. */ describe("SplashScreen", function () { - var _apiDir = __dirname + "./../../../templates/project/plugins/SplashScreen/", + var _apiDir = __dirname + "./../../../templates/project/plugins/SplashScreen/src/blackberry10/", index, mockedEnv = { response: {
