Skip to content
Permalink
Browse files
cleaned up console.log, running all create tests
  • Loading branch information
purplecabbage committed Apr 5, 2017
1 parent 8303894 commit f850fe186a0b40cc1a79412c767f7a3a95e6706c
Showing 2 changed files with 27 additions and 28 deletions.
@@ -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);
});

});

@@ -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, '**');

0 comments on commit f850fe1

Please sign in to comment.