You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by lo...@apache.org on 2013/05/14 20:32:51 UTC

[09/33] js commit: [BlackBerry10] Use full path to plugins.json

[BlackBerry10] Use full path to plugins.json

Reviewed by Jeffrey Heifetz <jh...@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/2e12eda5
Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/2e12eda5
Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/2e12eda5

Branch: refs/heads/master
Commit: 2e12eda546031cbca35832b496086f5d71caf43a
Parents: 86c137f
Author: Bryan Higgins <bh...@blackberry.com>
Authored: Fri Mar 22 11:36:42 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Fri May 3 09:49:38 2013 -0400

----------------------------------------------------------------------
 .../plugin/blackberry10/pluginUtils.js             |    2 +-
 test/blackberry10/test.pluginUtils.js              |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/2e12eda5/lib/blackberry10/plugin/blackberry10/pluginUtils.js
----------------------------------------------------------------------
diff --git a/lib/blackberry10/plugin/blackberry10/pluginUtils.js b/lib/blackberry10/plugin/blackberry10/pluginUtils.js
index 88f03c5..a07a665 100644
--- a/lib/blackberry10/plugin/blackberry10/pluginUtils.js
+++ b/lib/blackberry10/plugin/blackberry10/pluginUtils.js
@@ -63,7 +63,7 @@ module.exports = {
         var request,
             response;
         request = new XMLHttpRequest();
-        request.open('GET', 'plugins/plugins.json', true);
+        request.open('GET', 'local:///plugins/plugins.json', true);
         request.onreadystatechange = function () {
             if (request.readyState === 4) {
                 if (request.status === 200) {

http://git-wip-us.apache.org/repos/asf/cordova-js/blob/2e12eda5/test/blackberry10/test.pluginUtils.js
----------------------------------------------------------------------
diff --git a/test/blackberry10/test.pluginUtils.js b/test/blackberry10/test.pluginUtils.js
index 6b5a24a..441ebcc 100644
--- a/test/blackberry10/test.pluginUtils.js
+++ b/test/blackberry10/test.pluginUtils.js
@@ -119,7 +119,7 @@ describe('blackberry10 pluginUtils', function () {
 
         it('sends XHR for plugins.json', function () {
             pluginUtils.getPlugins(success, error);
-            expect(xhr.open).toHaveBeenCalledWith('GET', 'plugins/plugins.json', true);
+            expect(xhr.open).toHaveBeenCalledWith('GET', 'local:///plugins/plugins.json', true);
             expect(xhr.send).toHaveBeenCalled();
         });