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
a7bb0889
...
a7bb0889020f4ec9606a113b38eac65b06082a75
authored
2013-03-06 19:57:27 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
jshint
1 parent
46690d33
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
12 additions
and
14 deletions
modules/casper.js
modules/cli.js
modules/colorizer.js
modules/http.js
modules/mouse.js
modules/pagestack.js
modules/tester.js
modules/utils.js
modules/xunit.js
modules/casper.js
View file @
a7bb088
...
...
@@ -28,7 +28,7 @@
*
*/
/*global CasperError, console, exports, phantom, __utils__, patchRequire*/
/*global CasperError, console, exports, phantom, __utils__, patchRequire
, require:true
*/
var
require
=
patchRequire
(
require
);
var
colorizer
=
require
(
'colorizer'
);
...
...
@@ -1557,12 +1557,9 @@ Casper.prototype.then = function then(step) {
* @see Casper#click
* @see Casper#then
*/
Casper
.
prototype
.
thenClick
=
function
thenClick
(
selector
,
then
,
fallbackToHref
)
{
Casper
.
prototype
.
thenClick
=
function
thenClick
(
selector
,
then
)
{
"use strict"
;
this
.
checkStarted
();
if
(
arguments
.
length
>
2
)
{
this
.
emit
(
"deprecated"
,
"The thenClick() method does not process the fallbackToHref argument since 0.6"
);
}
this
.
then
(
function
_step
()
{
this
.
click
(
selector
);
});
...
...
modules/cli.js
View file @
a7bb088
...
...
@@ -28,7 +28,7 @@
*
*/
/*global CasperError, console, exports, phantom, patchRequire*/
/*global CasperError, console, exports, phantom, patchRequire
, require:true
*/
var
require
=
patchRequire
(
require
);
var
utils
=
require
(
'utils'
);
...
...
modules/colorizer.js
View file @
a7bb088
...
...
@@ -28,7 +28,7 @@
*
*/
/*global exports, console, patchRequire*/
/*global exports, console, patchRequire
, require:true
*/
var
require
=
patchRequire
(
require
);
var
fs
=
require
(
'fs'
);
...
...
modules/http.js
View file @
a7bb088
...
...
@@ -28,7 +28,7 @@
*
*/
/*global patchRequire*/
/*global patchRequire
, require:true
*/
var
require
=
patchRequire
(
require
);
var
utils
=
require
(
'utils'
);
...
...
modules/mouse.js
View file @
a7bb088
...
...
@@ -28,7 +28,7 @@
*
*/
/*global CasperError, exports, patchRequire*/
/*global CasperError, exports, patchRequire
, require:true
*/
var
require
=
patchRequire
(
require
);
var
utils
=
require
(
'utils'
);
...
...
modules/pagestack.js
View file @
a7bb088
...
...
@@ -28,7 +28,7 @@
*
*/
/*global CasperError, console, exports, phantom, patchRequire*/
/*global CasperError, console, exports, phantom, patchRequire
, require:true
*/
var
require
=
patchRequire
(
require
);
var
utils
=
require
(
'utils'
);
...
...
modules/tester.js
View file @
a7bb088
...
...
@@ -28,7 +28,7 @@
*
*/
/*global CasperError, exports, phantom, __utils__, patchRequire*/
/*global CasperError, exports, phantom, __utils__, patchRequire
, require:true
*/
var
require
=
patchRequire
(
require
);
var
fs
=
require
(
'fs'
);
...
...
@@ -1005,7 +1005,8 @@ Tester.prototype.exec = function exec(file) {
"use strict"
;
file
=
this
.
filter
(
'exec.file'
,
file
)
||
file
;
if
(
!
fs
.
isFile
(
file
)
||
!
utils
.
isJsFile
(
file
))
{
var
e
=
new
CasperError
(
f
(
"Cannot exec %s: can only exec() files with .js or .coffee extensions"
,
file
));
var
e
=
new
CasperError
(
f
(
"Cannot exec %s: can only exec() files with .js or .coffee extensions"
,
file
));
e
.
fileName
=
e
.
file
=
e
.
sourceURL
=
file
;
throw
e
;
}
...
...
modules/utils.js
View file @
a7bb088
...
...
@@ -28,7 +28,7 @@
*
*/
/*global CasperError, console, exports, phantom, patchRequire*/
/*global CasperError, console, exports, phantom, patchRequire
, require:true
*/
var
require
=
patchRequire
(
require
);
...
...
modules/xunit.js
View file @
a7bb088
...
...
@@ -28,7 +28,7 @@
*
*/
/*global CasperError, console, exports, phantom, patchRequire*/
/*global CasperError, console, exports, phantom, patchRequire
, require:true
*/
var
require
=
patchRequire
(
require
);
var
utils
=
require
(
'utils'
);
...
...
Please
register
or
sign in
to post a comment