FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node-xcode/test/parser/section-split.js at master · jaredly/node-xcode · GitHub
jaredly
/
node-xcode
Public
forked from
alunny/node-xcode
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
node-xcode
/
test
/
parser
/
section-split.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
35 lines (28 loc) · 1.25 KB
Breadcrumbs
node-xcode
/
test
/
parser
/
section-split.js
Copy path
File metadata and controls
35 lines (28 loc) · 1.25 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
var
PEG
=
require
(
'pegjs'
)
,
fs
=
require
(
'fs'
)
,
pbx
=
fs
.
readFileSync
(
'test/parser/projects/section-split.pbxproj'
,
'utf-8'
)
,
grammar
=
fs
.
readFileSync
(
'lib/parser/pbxproj.pegjs'
,
'utf-8'
)
,
parser
=
PEG
.
buildParser
(
grammar
)
,
rawProj
=
parser
.
parse
(
pbx
)
,
project
=
rawProj
.
project
;
exports
[
'should have a PBXTargetDependency section'
]
=
function
(
test
)
{
test
.
ok
(
project
.
objects
[
'PBXTargetDependency'
]
)
;
test
.
done
(
)
;
}
exports
[
'should have the right child of PBXTargetDependency section'
]
=
function
(
test
)
{
test
.
ok
(
project
.
objects
[
'PBXTargetDependency'
]
[
'301BF551109A68C00062928A'
]
)
;
test
.
done
(
)
;
}
exports
[
'should have the right properties on the dependency'
]
=
function
(
test
)
{
var
dependency
=
project
.
objects
[
'PBXTargetDependency'
]
[
'301BF551109A68C00062928A'
]
;
test
.
equal
(
dependency
.
isa
,
'PBXTargetDependency'
)
test
.
equal
(
dependency
.
name
,
'PhoneGapLib'
)
test
.
equal
(
dependency
.
targetProxy
,
'301BF550109A68C00062928A'
)
test
.
equal
(
dependency
[
'targetProxy_comment'
]
,
'PBXContainerItemProxy'
)
test
.
done
(
)
;
}
exports
[
'should merge two PBXTargetDependency sections'
]
=
function
(
test
)
{
test
.
ok
(
project
.
objects
[
'PBXTargetDependency'
]
[
'301BF551109A68C00062928A'
]
)
;
test
.
ok
(
project
.
objects
[
'PBXTargetDependency'
]
[
'45FDD1944D304A9F96DF3AC6'
]
)
;
test
.
done
(
)
;
}
Back
|
FazBrowse Home
|
New Git URL