Fixed ios plist install with moving js file
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/2528ab67 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/2528ab67 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/2528ab67 Branch: refs/heads/master Commit: 2528ab67912da4f5dcb710b8048dc6c3ba8d7b4d Parents: 29a0384 Author: Tim Kim <[email protected]> Authored: Tue Apr 16 16:36:24 2013 -0700 Committer: Tim Kim <[email protected]> Committed: Tue Apr 16 16:36:24 2013 -0700 ---------------------------------------------------------------------- test/ios-plist-install.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/2528ab67/test/ios-plist-install.js ---------------------------------------------------------------------- diff --git a/test/ios-plist-install.js b/test/ios-plist-install.js index 4ac8fbd..dd8bed3 100644 --- a/test/ios-plist-install.js +++ b/test/ios-plist-install.js @@ -74,12 +74,12 @@ exports['should install webless plugin'] = function (test) { exports['should move the js file'] = function (test) { var pluginsPath = path.join(test_dir, 'plugins'); var wwwPath = path.join(test_dir, 'projects', 'ios-plist', 'www'); + var jsPath = path.join(test_dir, 'projects', 'ios-plist', 'www', 'plugins', 'com.phonegap.plugins.childbrowser', 'www', 'childbrowser.js'); // run the platform-specific function ios.handlePlugin('install', test_project_dir, test_plugin_dir, plugin_et, { APP_ID: 12345 }); plugin_loader.handlePrepare(test_project_dir, pluginsPath, wwwPath, 'ios'); - - var jsPath = path.join(test_dir, 'projects', 'ios-plist', 'www', 'childbrowser.js'); + test.ok(fs.existsSync(jsPath)); test.ok(fs.statSync(jsPath).isFile()); test.done();
