Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
6df047da
...
6df047daa2520b831dbef424fe034d5cb47ecf4a
authored
2013-02-24 23:38:27 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed selftest single test path resolution
1 parent
45affec1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
bin/bootstrap.js
bin/bootstrap.js
View file @
6df047d
...
...
@@ -216,7 +216,7 @@ CasperError.prototype = Object.getPrototypeOf(new Error());
phantom
.
casperScript
=
fs
.
absolute
(
fs
.
pathJoin
(
baseTestsPath
,
'run.js'
));
phantom
.
casperTest
=
true
;
phantom
.
casperArgs
.
drop
(
"test"
);
phantom
.
casperScriptBaseDir
=
fs
.
dirname
(
phantom
.
casperArgs
.
get
(
0
));
phantom
.
casperScriptBaseDir
=
fs
.
dirname
(
phantom
.
casperArgs
.
get
(
1
));
}
else
if
(
phantom
.
casperArgs
.
get
(
0
)
===
"selftest"
)
{
phantom
.
casperScript
=
fs
.
absolute
(
fs
.
pathJoin
(
baseTestsPath
,
'run.js'
));
phantom
.
casperSelfTest
=
phantom
.
casperTest
=
true
;
...
...
@@ -225,7 +225,7 @@ CasperError.prototype = Object.getPrototypeOf(new Error());
phantom
.
casperArgs
.
args
.
push
(
fs
.
pathJoin
(
baseTestsPath
,
'suites'
));
}
phantom
.
casperArgs
.
drop
(
"selftest"
);
phantom
.
casperScriptBaseDir
=
fs
.
dirname
(
phantom
.
casperArgs
.
get
(
0
)
||
fs
.
dirname
(
phantom
.
casperScript
));
phantom
.
casperScriptBaseDir
=
fs
.
dirname
(
phantom
.
casperArgs
.
get
(
1
)
||
fs
.
dirname
(
phantom
.
casperScript
));
}
else
if
(
phantom
.
casperArgs
.
args
.
length
===
0
||
!!
phantom
.
casperArgs
.
options
.
help
)
{
return
printHelp
();
}
...
...
Please
register
or
sign in
to post a comment