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
deb290f0
...
deb290f097d402e2cba13ddc3d03899104ddae8e
authored
2013-01-11 08:57:06 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed getting .test property exits casper in non-test env
1 parent
6ea9a841
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
modules/casper.js
modules/casper.js
View file @
deb290f
...
...
@@ -157,7 +157,7 @@ var Casper = function Casper(options) {
this
.
_test
=
undefined
;
this
.
__defineGetter__
(
'test'
,
function
()
{
if
(
!
phantom
.
casperTest
)
{
th
is
.
die
(
'casper.test property is only available using the `casperjs test` command'
);
th
row
new
CasperError
(
'casper.test property is only available using the `casperjs test` command'
);
}
if
(
!
utils
.
isObject
(
this
.
_test
))
{
this
.
_test
=
tester
.
create
(
this
);
...
...
Please
register
or
sign in
to post a comment