You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2013/11/08 01:09:48 UTC
git commit: fix 3 failing tests for windows8 and wp8 and add
assertions for wp7 too.
Updated Branches:
refs/heads/master 3a4c978e1 -> 14b6ea375
fix 3 failing tests for windows8 and wp8 and add assertions for wp7 too.
Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/14b6ea37
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/14b6ea37
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/14b6ea37
Branch: refs/heads/master
Commit: 14b6ea37586e77a608e11ea3d9d2a8195e015325
Parents: 3a4c978
Author: System Administrator <ro...@Jesses-iMac.local>
Authored: Thu Nov 7 16:09:25 2013 -0800
Committer: System Administrator <ro...@Jesses-iMac.local>
Committed: Thu Nov 7 16:09:25 2013 -0800
----------------------------------------------------------------------
spec/platform.spec.js | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/14b6ea37/spec/platform.spec.js
----------------------------------------------------------------------
diff --git a/spec/platform.spec.js b/spec/platform.spec.js
index e6925a2..7c20808 100644
--- a/spec/platform.spec.js
+++ b/spec/platform.spec.js
@@ -145,14 +145,19 @@ describe('platform command', function() {
expect(exec.mostRecentCall.args[0]).toMatch(/lib.android.cordova.\d.\d.\d[\d\-\w]*.bin.create/gi);
expect(exec.mostRecentCall.args[0]).toContain(project_dir);
}).then(function() {
+ return cordova.raw.platform('add', 'wp7');
+ }).then(function() {
+ expect(exec.mostRecentCall.args[0]).toMatch(/lib.wp.cordova.\d.\d.\d[\d\w\-]*.wp7.*.bin.create/gi);
+ expect(exec.mostRecentCall.args[0]).toContain(project_dir);
+ }).then(function() {
return cordova.raw.platform('add', 'wp8');
}).then(function() {
- expect(exec.mostRecentCall.args[0]).toMatch(/lib.wp.cordova.\d.\d.\d[\d\w\-]*.wp8.bin.create/gi);
+ expect(exec.mostRecentCall.args[0]).toMatch(/lib.wp.cordova.\d.\d.\d[\d\w\-]*.wp8.*.bin.create/gi);
expect(exec.mostRecentCall.args[0]).toContain(project_dir);
}).then(function(){
return cordova.raw.platform('add', 'windows8');
}).then(function(){
- expect(exec.mostRecentCall.args[0]).toMatch(/lib.windows8.cordova.\d.\d.\d[\d\w\-]*.windows8.bin.create/gi);
+ expect(exec.mostRecentCall.args[0]).toMatch(/lib.windows8.cordova.\d.\d.\d[\d\w\-]*.windows8.*.bin.create/gi);
expect(exec.mostRecentCall.args[0]).toContain(project_dir);
done();
});
@@ -170,7 +175,7 @@ describe('platform command', function() {
});
cordova.raw.platform('add', 'wp8').then(function() {
expect(load_custom).toHaveBeenCalledWith('haha', 'phonegap', 'wp8', 'bleeding edge');
- expect(exec.mostRecentCall.args[0]).toMatch(/lib.wp.phonegap.bleeding edge.wp8.bin.create/gi);
+ expect(exec.mostRecentCall.args[0]).toMatch(/lib.wp.phonegap.bleeding edge.wp8.*.bin.create/gi);
expect(exec.mostRecentCall.args[0]).toContain(project_dir);
done();
});