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
8cf868e0
Commit
8cf868e0
authored
Aug 24, 2014
by
Adeel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test: Replace back-slashes with forward-slashes.
To comply with the changes in libsass.
parent
c159e48f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
binding.cpp
binding.cpp
+0
-2
source_comments_spec.js
test/source_comments_spec.js
+1
-1
stats_spec.js
test/stats_spec.js
+3
-3
No files found.
binding.cpp
View file @
8cf868e0
...
@@ -50,7 +50,6 @@ void ExtractOptions(Local<Value> optionsValue, void* cptr, sass_context_wrapper*
...
@@ -50,7 +50,6 @@ void ExtractOptions(Local<Value> optionsValue, void* cptr, sass_context_wrapper*
if
(
isFile
)
{
if
(
isFile
)
{
sass_file_context
*
ctx
=
(
sass_file_context
*
)
cptr
;
sass_file_context
*
ctx
=
(
sass_file_context
*
)
cptr
;
ctx
->
input_path
=
CreateString
(
options
->
Get
(
NanNew
(
"file"
)));
ctx
->
input_path
=
CreateString
(
options
->
Get
(
NanNew
(
"file"
)));
ctx
->
output_path
=
CreateString
(
options
->
Get
(
NanNew
(
"outFile"
)));
ctx
->
options
.
image_path
=
CreateString
(
options
->
Get
(
NanNew
(
"imagePath"
)));
ctx
->
options
.
image_path
=
CreateString
(
options
->
Get
(
NanNew
(
"imagePath"
)));
ctx
->
options
.
output_style
=
options
->
Get
(
NanNew
(
"style"
))
->
Int32Value
();
ctx
->
options
.
output_style
=
options
->
Get
(
NanNew
(
"style"
))
->
Int32Value
();
ctx
->
options
.
source_comments
=
source_comments
=
options
->
Get
(
NanNew
(
"comments"
))
->
Int32Value
();
ctx
->
options
.
source_comments
=
source_comments
=
options
->
Get
(
NanNew
(
"comments"
))
->
Int32Value
();
...
@@ -62,7 +61,6 @@ void ExtractOptions(Local<Value> optionsValue, void* cptr, sass_context_wrapper*
...
@@ -62,7 +61,6 @@ void ExtractOptions(Local<Value> optionsValue, void* cptr, sass_context_wrapper*
}
else
{
}
else
{
sass_context
*
ctx
=
(
sass_context
*
)
cptr
;
sass_context
*
ctx
=
(
sass_context
*
)
cptr
;
ctx
->
source_string
=
CreateString
(
options
->
Get
(
NanNew
(
"data"
)));
ctx
->
source_string
=
CreateString
(
options
->
Get
(
NanNew
(
"data"
)));
ctx
->
output_path
=
CreateString
(
options
->
Get
(
NanNew
(
"outFile"
)));
ctx
->
options
.
image_path
=
CreateString
(
options
->
Get
(
NanNew
(
"imagePath"
)));
ctx
->
options
.
image_path
=
CreateString
(
options
->
Get
(
NanNew
(
"imagePath"
)));
ctx
->
options
.
output_style
=
options
->
Get
(
NanNew
(
"style"
))
->
Int32Value
();
ctx
->
options
.
output_style
=
options
->
Get
(
NanNew
(
"style"
))
->
Int32Value
();
ctx
->
options
.
source_comments
=
source_comments
=
options
->
Get
(
NanNew
(
"comments"
))
->
Int32Value
();
ctx
->
options
.
source_comments
=
source_comments
=
options
->
Get
(
NanNew
(
"comments"
))
->
Int32Value
();
...
...
test/source_comments_spec.js
View file @
8cf868e0
var
sass
=
require
(
'../sass'
);
var
sass
=
require
(
'../sass'
);
var
assert
=
require
(
'assert'
);
var
assert
=
require
(
'assert'
);
var
sampleFilename
=
require
(
'path'
).
resolve
(
__dirname
,
'sample.scss'
);
var
sampleFilename
=
require
(
'path'
).
resolve
(
__dirname
,
'sample.scss'
)
.
replace
(
/
\\
/g
,
'/'
)
;
var
expectedCommentsScssStr
=
'/* line 1, '
+
sampleFilename
+
' */
\
n
\
var
expectedCommentsScssStr
=
'/* line 1, '
+
sampleFilename
+
' */
\
n
\
#navbar {
\
n
\
#navbar {
\
n
\
...
...
test/stats_spec.js
View file @
8cf868e0
...
@@ -3,9 +3,9 @@
...
@@ -3,9 +3,9 @@
var
path
=
require
(
'path'
);
var
path
=
require
(
'path'
);
var
assert
=
require
(
'assert'
);
var
assert
=
require
(
'assert'
);
var
sass
=
process
.
env
.
NODESASS_COVERAGE
?
require
(
'../sass-coverage'
)
:
require
(
'../sass'
);
var
sass
=
process
.
env
.
NODESASS_COVERAGE
?
require
(
'../sass-coverage'
)
:
require
(
'../sass'
);
var
includedFilesFile
=
path
.
resolve
(
__dirname
,
'included_files.scss'
);
var
includedFilesFile
=
path
.
resolve
(
__dirname
,
'included_files.scss'
)
.
replace
(
/
\\
/g
,
'/'
)
;
var
sampleFile
=
path
.
resolve
(
__dirname
,
'sample.scss'
);
var
sampleFile
=
path
.
resolve
(
__dirname
,
'sample.scss'
)
.
replace
(
/
\\
/g
,
'/'
)
;
var
imagePathFile
=
path
.
resolve
(
__dirname
,
'image_path.scss'
);
var
imagePathFile
=
path
.
resolve
(
__dirname
,
'image_path.scss'
)
.
replace
(
/
\\
/g
,
'/'
)
;
var
sample
=
require
(
'./sample.js'
);
var
sample
=
require
(
'./sample.js'
);
describe
(
'stats'
,
function
()
{
describe
(
'stats'
,
function
()
{
...
...
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