cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject [03/50] [abbrv] git commit: Fixed android one uninstall test
Date Tue, 23 Apr 2013 23:00:31 GMT
Fixed android one uninstall test


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/19c157a0
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/19c157a0
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/19c157a0

Branch: refs/heads/master
Commit: 19c157a08182937cac42252ff6eefb6cb41afe59
Parents: 3a6777a
Author: Tim Kim <timk@adobe.com>
Authored: Tue Apr 16 14:48:15 2013 -0700
Committer: Tim Kim <timk@adobe.com>
Committed: Tue Apr 16 14:48:15 2013 -0700

----------------------------------------------------------------------
 test/android-one-uninstall.js       |    3 +++
 test/plugins/DummyPlugin/plugin.xml |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19c157a0/test/android-one-uninstall.js
----------------------------------------------------------------------
diff --git a/test/android-one-uninstall.js b/test/android-one-uninstall.js
index 6cd557d..ed47569 100644
--- a/test/android-one-uninstall.js
+++ b/test/android-one-uninstall.js
@@ -93,9 +93,12 @@ exports['should not remove common package directories when two plugins
share a p
 }
 
 exports['should remove the directory'] = function (test) {
+    var pluginsPath = path.join(test_dir, 'plugins');
+    var wwwPath = path.join(test_dir, 'projects', 'android_one', 'assets', 'www');
     var assetPath = path.join(test_dir, 'projects', 'android_one', 'assets', 'www', 'childbrowser');
 
     android.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et);
+    plugin_loader.handlePrepare(test_project_dir, pluginsPath, wwwPath, 'android');
     test.ok(fs.existsSync(assetPath));
 
     android.handlePlugin('uninstall', test_project_dir, test_plugin_dir, plugin_et);

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19c157a0/test/plugins/DummyPlugin/plugin.xml
----------------------------------------------------------------------
diff --git a/test/plugins/DummyPlugin/plugin.xml b/test/plugins/DummyPlugin/plugin.xml
index 3f55586..d1bf38c 100644
--- a/test/plugins/DummyPlugin/plugin.xml
+++ b/test/plugins/DummyPlugin/plugin.xml
@@ -53,7 +53,7 @@
                 value="com.phonegap.plugins.dummyplugin.DummyPlugin"/>
         </config-file>
 
-        <source-file src="DummyPlugin.java"
+        <source-file src="src/android/DummyPlugin.java"
                 target-dir="src/com/phonegap/plugins/dummyplugin" />
     </platform>
 


Mime
View raw message