You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2013/03/04 20:32:50 UTC
[90/91] [abbrv] git commit: [tests] corrected test plugin.xml path
[tests] corrected test plugin.xml path
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/e65a2a31
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/e65a2a31
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/e65a2a31
Branch: refs/heads/master
Commit: e65a2a3127e7554f8fcb0e2c78a56a83d9debac2
Parents: ae414a1
Author: Brett Rudd <br...@gmail.com>
Authored: Wed Feb 20 18:23:10 2013 -0800
Committer: Brett Rudd <br...@gmail.com>
Committed: Wed Feb 20 18:23:10 2013 -0800
----------------------------------------------------------------------
test/ios-install.js | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/e65a2a31/test/ios-install.js
----------------------------------------------------------------------
diff --git a/test/ios-install.js b/test/ios-install.js
index 97b750e..bd51f46 100644
--- a/test/ios-install.js
+++ b/test/ios-install.js
@@ -137,15 +137,15 @@ exports['should edit config.xml'] = function (test) {
'[@value="WebNotifications"]';
test.ok(pluginsDoc.find(expected));
- test.equal(pluginsDoc.findall("access").length, 3, "/access");
- test.equal(pluginsDoc.findall("access")[1].attrib["origin"], "build.phonegap.com")
+ test.equal(pluginsDoc.findall("access").length, 3, "/access");
+ test.equal(pluginsDoc.findall("access")[1].attrib["origin"], "build.phonegap.com")
test.equal(pluginsDoc.findall("access")[2].attrib["origin"], "s3.amazonaws.com")
test.done();
}
exports['should edit config.xml even when using old <plugins-plist> approach'] = function (test) {
// setting up PGSQLitePlugin (with config.xml)
- var dummy_plugin_dir = path.join(test_dir, 'plugins', 'PGSQLitePlugin')
+ var dummy_plugin_dir = path.join(test_dir, 'plugins', 'ChildBrowser')
var dummy_xml_path = path.join(dummy_plugin_dir, 'plugin.xml')
// overriding some params
@@ -158,12 +158,12 @@ exports['should edit config.xml even when using old <plugins-plist> approach'] =
var configXmlPath = path.join(project_dir, 'SampleApp', 'config.xml');
var pluginsTxt = fs.readFileSync(configXmlPath, 'utf-8'),
pluginsDoc = new et.ElementTree(et.XML(pluginsTxt)),
- expected = 'plugins/plugin[@name="PGSQLitePlugin"]' +
- '[@value="PGSQLitePlugin"]';
+ expected = 'plugins/plugin[@name="com.phonegap.plugins.childbrowser"]' +
+ '[@value="ChildBrowserCommand"]';
test.ok(pluginsDoc.find(expected));
- test.equal(pluginsDoc.findall("access").length, 3, "/access");
- test.equal(pluginsDoc.findall("access")[1].attrib["origin"], "build.phonegap.com")
+ test.equal(pluginsDoc.findall("access").length, 3, "/access");
+ test.equal(pluginsDoc.findall("access")[1].attrib["origin"], "build.phonegap.com")
test.equal(pluginsDoc.findall("access")[2].attrib["origin"], "s3.amazonaws.com")
test.done();