You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2013/12/10 19:47:02 UTC

[02/10] git commit: CB-5499 added config_xml method to wp7 exports, and added tests for wp7+wp8

CB-5499 added config_xml method to wp7 exports, and added tests for wp7+wp8


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

Branch: refs/heads/master
Commit: 0779679780639ebd2185bf5363f77df91eb2dc74
Parents: 34133e0
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Fri Dec 6 17:31:10 2013 -0800
Committer: Steven Gill <st...@gmail.com>
Committed: Tue Dec 10 10:44:31 2013 -0800

----------------------------------------------------------------------
 spec/metadata/wp7_parser.spec.js | 5 +++++
 spec/metadata/wp8_parser.spec.js | 5 +++++
 src/metadata/wp7_parser.js       | 3 +++
 3 files changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/07796797/spec/metadata/wp7_parser.spec.js
----------------------------------------------------------------------
diff --git a/spec/metadata/wp7_parser.spec.js b/spec/metadata/wp7_parser.spec.js
index bd31c03..6dc0695 100644
--- a/spec/metadata/wp7_parser.spec.js
+++ b/spec/metadata/wp7_parser.spec.js
@@ -181,6 +181,11 @@ describe('wp7 project parser', function() {
                 expect(p.staging_dir()).toEqual(path.join(wp7_proj, '.staging', 'www'));
             });
         });
+        describe('config_xml method', function() {
+            it('should return the location of the config.xml', function() {
+                expect(p.config_xml()).toEqual(path.join(wp7_proj, 'config.xml'));
+            });
+        });
         describe('update_www method', function() {
             var update_csproj;
             beforeEach(function() {

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/07796797/spec/metadata/wp8_parser.spec.js
----------------------------------------------------------------------
diff --git a/spec/metadata/wp8_parser.spec.js b/spec/metadata/wp8_parser.spec.js
index 9f50397..8cd1923 100644
--- a/spec/metadata/wp8_parser.spec.js
+++ b/spec/metadata/wp8_parser.spec.js
@@ -181,6 +181,11 @@ describe('wp8 project parser', function() {
                 expect(p.staging_dir()).toEqual(path.join(wp8_proj, '.staging', 'www'));
             });
         });
+        describe('config_xml method', function() {
+            it('should return the location of the config.xml', function() {
+                expect(p.config_xml()).toEqual(path.join(wp8_proj, 'config.xml'));
+            });
+        });
         describe('update_www method', function() {
             var update_csproj;
             beforeEach(function() {

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/07796797/src/metadata/wp7_parser.js
----------------------------------------------------------------------
diff --git a/src/metadata/wp7_parser.js b/src/metadata/wp7_parser.js
index 33fc756..11a0016 100644
--- a/src/metadata/wp7_parser.js
+++ b/src/metadata/wp7_parser.js
@@ -145,6 +145,9 @@ module.exports.prototype = {
     www_dir:function() {
         return path.join(this.wp7_proj_dir, 'www');
     },
+    config_xml:function() {
+        return this.config_path;
+    },
     // copy files from merges directory to actual www dir
     copy_merges:function(merges_sub_path) {
         var merges_path = path.join(util.appDir(util.isCordova(this.wp7_proj_dir)), 'merges', merges_sub_path);