cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [07/13] cordova-test-platform git commit: cleaned up console.log, running all create tests
Date Fri, 07 Apr 2017 19:40:56 GMT
cleaned up console.log, running all create tests


Project: http://git-wip-us.apache.org/repos/asf/cordova-test-platform/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-test-platform/commit/f850fe18
Tree: http://git-wip-us.apache.org/repos/asf/cordova-test-platform/tree/f850fe18
Diff: http://git-wip-us.apache.org/repos/asf/cordova-test-platform/diff/f850fe18

Branch: refs/heads/master
Commit: f850fe186a0b40cc1a79412c767f7a3a95e6706c
Parents: 8303894
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Tue Apr 4 18:03:26 2017 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Tue Apr 4 18:03:26 2017 -0700

----------------------------------------------------------------------
 spec/create.spec.js | 54 ++++++++++++++++++++++++------------------------
 src/cordova/Api.js  |  1 -
 2 files changed, 27 insertions(+), 28 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-test-platform/blob/f850fe18/spec/create.spec.js
----------------------------------------------------------------------
diff --git a/spec/create.spec.js b/spec/create.spec.js
index f4eb1c3..323d724 100644
--- a/spec/create.spec.js
+++ b/spec/create.spec.js
@@ -37,7 +37,7 @@ function createAndBuild(projectname, projectid) {
 
     // create the project
     command = util.format('"%s" "%s/%s" "%s" "%s"', createScriptPath, tmpDir, projectname,
projectid, projectname);
-    shell.echo(command);
+    //shell.echo(command);
     return_code = shell.exec(command).code;
     expect(return_code).toBe(0);
 
@@ -55,7 +55,7 @@ function createAndBuild(projectname, projectid) {
 
     // // build the project
     command = util.format('"%s/cordova/build"', path.join(tmpDir, projectname));
-    shell.echo(command);
+    //shell.echo(command);
     return_code = shell.exec(command, { silent: true }).code;
     expect(return_code).toBe(0);
 
@@ -79,40 +79,40 @@ describe('create', function() {
         createAndBuild(projectname, projectid);
     });
 
-    // it('create project with ascii name, and spaces', function() {
-    //     var projectname = 'test create';
-    //     var projectid = 'com.test.app2';
+    it('create project with ascii name, and spaces', function() {
+        var projectname = 'test create';
+        var projectid = 'com.test.app2';
 
-    //     createAndBuild(projectname, projectid);
-    // });
+        createAndBuild(projectname, projectid);
+    });
 
-    // it('create project with unicode name, no spaces', function() {
-    //     var projectname = '応応応応用用用用';
-    //     var projectid = 'com.test.app3';
+    it('create project with unicode name, no spaces', function() {
+        var projectname = '応応応応用用用用';
+        var projectid = 'com.test.app3';
 
-    //     createAndBuild(projectname, projectid);
-    // });
+        createAndBuild(projectname, projectid);
+    });
 
-    // it('create project with unicode name, and spaces', function() {
-    //     var projectname = '応応応応 用用用用';
-    //     var projectid = 'com.test.app4';
+    it('create project with unicode name, and spaces', function() {
+        var projectname = '応応応応 用用用用';
+        var projectid = 'com.test.app4';
 
-    //     createAndBuild(projectname, projectid);
-    // });
+        createAndBuild(projectname, projectid);
+    });
 
-    // it('create project with ascii+unicode name, no spaces', function() {
-    //     var projectname = '応応応応hello用用用用';
-    //     var projectid = 'com.test.app5';
+    it('create project with ascii+unicode name, no spaces', function() {
+        var projectname = '応応応応hello用用用用';
+        var projectid = 'com.test.app5';
 
-    //     createAndBuild(projectname, projectid);
-    // });
+        createAndBuild(projectname, projectid);
+    });
 
-    // it('create project with ascii+unicode name, and spaces', function() {
-    //     var projectname = '応応応応 hello 用用用用';
-    //     var projectid = 'com.test.app6';
+    it('create project with ascii+unicode name, and spaces', function() {
+        var projectname = '応応応応 hello 用用用用';
+        var projectid = 'com.test.app6';
 
-    //     createAndBuild(projectname, projectid);
-    // });
+        createAndBuild(projectname, projectid);
+    });
 
 });
 

http://git-wip-us.apache.org/repos/asf/cordova-test-platform/blob/f850fe18/src/cordova/Api.js
----------------------------------------------------------------------
diff --git a/src/cordova/Api.js b/src/cordova/Api.js
index a49193f..5a8f341 100644
--- a/src/cordova/Api.js
+++ b/src/cordova/Api.js
@@ -52,7 +52,6 @@ Api.createPlatform = function (destination, config, options, events) {
     shell.mkdir(path.join(destination,'cordova'));
 
     var apiPath = path.join(__dirname, '**'); // default value
-    console.log("apiPath = " + apiPath);
     // does options contain the info we desire?
     if(options && options.platformDetails) {
         apiPath = path.join(options.platformDetails.libDir, '**');


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message