Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1C39710C51 for ; Tue, 23 Apr 2013 23:00:30 +0000 (UTC) Received: (qmail 42884 invoked by uid 500); 23 Apr 2013 23:00:29 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 42826 invoked by uid 500); 23 Apr 2013 23:00:29 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 42765 invoked by uid 99); 23 Apr 2013 23:00:29 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Apr 2013 23:00:29 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 9113E8235E7; Tue, 23 Apr 2013 23:00:29 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: filmaj@apache.org To: commits@cordova.apache.org Date: Tue, 23 Apr 2013 23:00:33 -0000 Message-Id: <226ad12ca3b7442a96e139ebf431c547@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [05/50] [abbrv] git commit: Fixed android two uninstall not removing directory Fixed android two uninstall not removing directory Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/29a03846 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/29a03846 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/29a03846 Branch: refs/heads/master Commit: 29a03846daadba94fbd77b94a0bb5363d7d46490 Parents: 0a97dc3 Author: Tim Kim Authored: Tue Apr 16 16:29:46 2013 -0700 Committer: Tim Kim Committed: Tue Apr 16 16:29:46 2013 -0700 ---------------------------------------------------------------------- test/android-two-uninstall.js | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/29a03846/test/android-two-uninstall.js ---------------------------------------------------------------------- diff --git a/test/android-two-uninstall.js b/test/android-two-uninstall.js index 8781eba..4e6e6fc 100644 --- a/test/android-two-uninstall.js +++ b/test/android-two-uninstall.js @@ -28,7 +28,7 @@ var fs = require('fs') , shell = require('shelljs') , et = require('elementtree') , android = require(path.join(__dirname, '..', 'platforms', 'android')) - + , plugin_loader = require('../util/plugin_loader') , test_dir = path.join(osenv.tmpdir(), 'test_plugman') , test_project_dir = path.join(test_dir, 'projects', 'android_two') , test_plugin_dir = path.join(test_dir, 'plugins', 'ChildBrowser') @@ -69,9 +69,12 @@ exports['should remove the js file'] = function (test) { } exports['should remove the directory'] = function (test) { + var pluginsPath = path.join(test_dir, 'plugins'); + var wwwPath = path.join(test_dir, 'projects', 'android_two', 'assets', 'www'); var assetPath = path.join(test_dir, 'projects', 'android_two', '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);