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 2017/04/11 21:04:33 UTC
[11/50] [abbrv] cordova-node-xcode git commit: Add tests for new tbd
file support
Add tests for new tbd file support
Project: http://git-wip-us.apache.org/repos/asf/cordova-node-xcode/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-node-xcode/commit/3613a96c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-node-xcode/tree/3613a96c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-node-xcode/diff/3613a96c
Branch: refs/heads/master
Commit: 3613a96cac2c969b2d6e08b3113e64ac1a699ae3
Parents: 3dd4ef2
Author: Scott Kyle <sc...@appden.com>
Authored: Tue May 31 14:54:37 2016 -0700
Committer: Scott Kyle <sc...@appden.com>
Committed: Tue May 31 14:54:37 2016 -0700
----------------------------------------------------------------------
test/pbxFile.js | 35 ++++++++++++++++++++++++++++++++++-
1 file changed, 34 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-node-xcode/blob/3613a96c/test/pbxFile.js
----------------------------------------------------------------------
diff --git a/test/pbxFile.js b/test/pbxFile.js
index 90e0851..114c576 100644
--- a/test/pbxFile.js
+++ b/test/pbxFile.js
@@ -36,6 +36,13 @@ exports['lastKnownFileType'] = {
test.done();
},
+ 'should detect that a .tbd path means sourcecode.text-based-dylib-definition': function (test) {
+ var sourceFile = new pbxFile('libsqlite3.tbd');
+
+ test.equal('sourcecode.text-based-dylib-definition', sourceFile.lastKnownFileType);
+ test.done();
+ },
+
'should detect that a .framework path means wrapper.framework': function (test) {
var sourceFile = new pbxFile('MessageUI.framework');
@@ -86,12 +93,24 @@ exports['group'] = {
test.equal('Sources', dataModelFile.group);
test.done();
},
- 'should be Frameworks for frameworks': function (test) {
+ 'should be Frameworks for dylibs': function (test) {
var framework = new pbxFile('libsqlite3.dylib');
test.equal('Frameworks', framework.group);
test.done();
},
+ 'should be Frameworks for tbds': function (test) {
+ var framework = new pbxFile('libsqlite3.tbd');
+
+ test.equal('Frameworks', framework.group);
+ test.done();
+ },
+ 'should be Frameworks for frameworks': function (test) {
+ var framework = new pbxFile('MessageUI.framework');
+
+ test.equal('Frameworks', framework.group);
+ test.done();
+ },
'should be Resources for all other files': function (test) {
var headerFile = new pbxFile('Plugins/ChildBrowser.h'),
xibFile = new pbxFile('Plugins/ChildBrowser.xib');
@@ -125,6 +144,13 @@ exports['sourceTree'] = {
test.done();
},
+ 'should be SDKROOT for tbds': function (test) {
+ var sourceFile = new pbxFile('libsqlite3.tbd');
+
+ test.equal('SDKROOT', sourceFile.sourceTree);
+ test.done();
+ },
+
'should be SDKROOT for frameworks': function (test) {
var sourceFile = new pbxFile('MessageUI.framework');
@@ -163,6 +189,13 @@ exports['path'] = {
test.done();
},
+ 'should be "usr/lib" for tbds (relative to SDKROOT)': function (test) {
+ var sourceFile = new pbxFile('libsqlite3.tbd');
+
+ test.equal('usr/lib/libsqlite3.tbd', sourceFile.path);
+ test.done();
+ },
+
'should be "System/Library/Frameworks" for frameworks': function (test) {
var sourceFile = new pbxFile('MessageUI.framework');
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org