Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
11bafcf9
Commit
11bafcf9
authored
Feb 22, 2012
by
Hampton Catlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SPECSSSSS
parent
c17685b0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
0 deletions
+47
-0
spec.rb
spec.rb
+37
-0
input.scss
spec/basic/02_simple_nesting/input.scss
+6
-0
output.css
spec/basic/02_simple_nesting/output.css
+4
-0
No files found.
spec.rb
View file @
11bafcf9
searchpath
=
ARGV
[
0
]
messages
=
[]
worked
=
0
spec_count
=
0
puts
(
"Running tests in
#{
searchpath
}
..
\n\n
"
)
Dir
[
File
.
join
(
searchpath
+
"**/input.*"
)].
each
do
|
input_file
|
spec_count
+=
1
spec_dir
=
File
.
dirname
(
input_file
)
cmd
=
"./bin/sassc
#{
input_file
}
"
#puts cmd
output
=
`
#{
cmd
}
`
expected_output
=
File
.
read
(
File
.
join
(
spec_dir
,
"output.css"
))
if
output
!=
expected_output
print
"F"
messages
<<
"Failed test
#{
spec_dir
}
"
else
worked
+=
1
print
"."
end
end
puts
(
"
\n\n
#{
worked
}
/
#{
spec_count
}
Specs Passed!"
)
if
messages
.
length
>
0
puts
(
"
\n
================================
\n
TEST FAILURES!
\n\n
"
)
puts
(
messages
.
join
(
"-----------
\n
"
))
puts
(
"
\n
"
)
exit
(
1
)
else
puts
(
"YOUWIN!"
)
exit
(
0
)
end
spec/basic/02_simple_nesting/input.scss
0 → 100644
View file @
11bafcf9
div
{
img
{
border
:
0px
;
}
}
\ No newline at end of file
spec/basic/02_simple_nesting/output.css
0 → 100644
View file @
11bafcf9
div
img
{
border
:
0px
;
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment