cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bennma...@apache.org
Subject git commit: removed cordova-<ver>.js from wp spec tests
Date Thu, 30 May 2013 23:54:09 GMT
Updated Branches:
  refs/heads/master2 1309777e4 -> 99a9ce51c


removed cordova-<ver>.js from wp spec tests


Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/99a9ce51
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/99a9ce51
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/99a9ce51

Branch: refs/heads/master2
Commit: 99a9ce51cd10dc5a3fcdb00381d871cf9ee48d76
Parents: 1309777
Author: Benn Mapes <benn.mapes@gmail.com>
Authored: Thu May 30 16:52:49 2013 -0700
Committer: Benn Mapes <benn.mapes@gmail.com>
Committed: Thu May 30 16:52:49 2013 -0700

----------------------------------------------------------------------
 spec/platform-script/wp7/wp7_parser.spec.js |    4 +---
 spec/platform-script/wp8/wp8_parser.spec.js |    4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/99a9ce51/spec/platform-script/wp7/wp7_parser.spec.js
----------------------------------------------------------------------
diff --git a/spec/platform-script/wp7/wp7_parser.spec.js b/spec/platform-script/wp7/wp7_parser.spec.js
index 7840bff..61111a1 100644
--- a/spec/platform-script/wp7/wp7_parser.spec.js
+++ b/spec/platform-script/wp7/wp7_parser.spec.js
@@ -192,9 +192,7 @@ describe('wp7 project parser', function() {
             });
             it('should write out windows-phone js to cordova.js', function() {
                 parser.update_www();
-                var raw_version = fs.readFileSync(path.join(util.libDirectory, 'cordova-wp7',
'VERSION'), 'utf-8');
-                var wp7_version = raw_version.replace(/\r\n/,'').replace(/\n/,'');
-                expect(fs.readFileSync(path.join(wp7_project_path, 'www', 'cordova.js'),'utf-8')).toEqual(fs.readFileSync(path.join(util.libDirectory,
'cordova-wp7', 'templates', 'standalone', 'www', 'cordova-' + wp7_version + '.js'), 'utf-8'));
+                expect(fs.readFileSync(path.join(wp7_project_path, 'www', 'cordova.js'),'utf-8')).toEqual(fs.readFileSync(path.join(util.libDirectory,
'cordova-wp7', 'templates', 'standalone', 'www', 'cordova.js'), 'utf-8'));
             });
         });
 

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/99a9ce51/spec/platform-script/wp8/wp8_parser.spec.js
----------------------------------------------------------------------
diff --git a/spec/platform-script/wp8/wp8_parser.spec.js b/spec/platform-script/wp8/wp8_parser.spec.js
index 5669e02..9f1f2d4 100644
--- a/spec/platform-script/wp8/wp8_parser.spec.js
+++ b/spec/platform-script/wp8/wp8_parser.spec.js
@@ -192,9 +192,7 @@ describe('wp8 project parser', function() {
             });
             it('should write out windows-phone js to cordova.js', function() {
                 parser.update_www();
-                var raw_version = fs.readFileSync(path.join(util.libDirectory, 'cordova-wp8',
'VERSION'), 'utf-8');
-                var wp8_version = raw_version.replace(/\r\n/,'').replace(/\n/,'');
-                expect(fs.readFileSync(path.join(wp8_project_path, 'www', 'cordova.js'),'utf-8')).toEqual(fs.readFileSync(path.join(util.libDirectory,
'cordova-wp8', 'templates', 'standalone', 'www', 'cordova-' + wp8_version + '.js'), 'utf-8'));
+                expect(fs.readFileSync(path.join(wp8_project_path, 'www', 'cordova.js'),'utf-8')).toEqual(fs.readFileSync(path.join(util.libDirectory,
'cordova-wp8', 'templates', 'standalone', 'www', 'cordova.js'), 'utf-8'));
             });
         });
 


Mime
View raw message