@@ -36,6 +36,13 @@ exports['lastKnownFileType'] = {
3636 test . done ( ) ;
3737 } ,
3838
39+ 'should detect that a .tbd path means sourcecode.text-based-dylib-definition' : function ( test ) {
40+ var sourceFile = new pbxFile ( 'libsqlite3.tbd' ) ;
41+
42+ test . equal ( 'sourcecode.text-based-dylib-definition' , sourceFile . lastKnownFileType ) ;
43+ test . done ( ) ;
44+ } ,
45+
3946 'should detect that a .framework path means wrapper.framework' : function ( test ) {
4047 var sourceFile = new pbxFile ( 'MessageUI.framework' ) ;
4148
@@ -86,12 +93,24 @@ exports['group'] = {
8693 test . equal ( 'Sources' , dataModelFile . group ) ;
8794 test . done ( ) ;
8895 } ,
89- 'should be Frameworks for frameworks ' : function ( test ) {
96+ 'should be Frameworks for dylibs ' : function ( test ) {
9097 var framework = new pbxFile ( 'libsqlite3.dylib' ) ;
9198
9299 test . equal ( 'Frameworks' , framework . group ) ;
93100 test . done ( ) ;
94101 } ,
102+ 'should be Frameworks for tbds' : function ( test ) {
103+ var framework = new pbxFile ( 'libsqlite3.tbd' ) ;
104+
105+ test . equal ( 'Frameworks' , framework . group ) ;
106+ test . done ( ) ;
107+ } ,
108+ 'should be Frameworks for frameworks' : function ( test ) {
109+ var framework = new pbxFile ( 'MessageUI.framework' ) ;
110+
111+ test . equal ( 'Frameworks' , framework . group ) ;
112+ test . done ( ) ;
113+ } ,
95114 'should be Resources for all other files' : function ( test ) {
96115 var headerFile = new pbxFile ( 'Plugins/ChildBrowser.h' ) ,
97116 xibFile = new pbxFile ( 'Plugins/ChildBrowser.xib' ) ;
@@ -125,6 +144,13 @@ exports['sourceTree'] = {
125144 test . done ( ) ;
126145 } ,
127146
147+ 'should be SDKROOT for tbds' : function ( test ) {
148+ var sourceFile = new pbxFile ( 'libsqlite3.tbd' ) ;
149+
150+ test . equal ( 'SDKROOT' , sourceFile . sourceTree ) ;
151+ test . done ( ) ;
152+ } ,
153+
128154 'should be SDKROOT for frameworks' : function ( test ) {
129155 var sourceFile = new pbxFile ( 'MessageUI.framework' ) ;
130156
@@ -163,6 +189,13 @@ exports['path'] = {
163189 test . done ( ) ;
164190 } ,
165191
192+ 'should be "usr/lib" for tbds (relative to SDKROOT)' : function ( test ) {
193+ var sourceFile = new pbxFile ( 'libsqlite3.tbd' ) ;
194+
195+ test . equal ( 'usr/lib/libsqlite3.tbd' , sourceFile . path ) ;
196+ test . done ( ) ;
197+ } ,
198+
166199 'should be "System/Library/Frameworks" for frameworks' : function ( test ) {
167200 var sourceFile = new pbxFile ( 'MessageUI.framework' ) ;
168201
0 commit comments