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
80fa8e5c
...
80fa8e5c4f7fa9939b0771e4105947ea8e683005
authored
2011-10-21 15:24:05 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
javascript linting
1 parent
0d445eba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
casper.js
casper.js
View file @
80fa8e5
...
...
@@ -88,7 +88,7 @@
* @return string Base64 encoded result
*/
base64encode
:
function
(
url
)
{
return
result
=
this
.
evaluate
(
function
()
{
return
this
.
evaluate
(
function
()
{
return
__utils__
.
getBase64
(
'%url%'
);
},
{
url
:
url
...
...
@@ -358,7 +358,7 @@
if
(
typeof
selector
!==
"string"
||
!
selector
.
length
)
{
throw
"form selector must be a non-empty string"
;
}
if
(
!
typeof
vals
=
==
"object"
)
{
if
(
typeof
vals
!
==
"object"
)
{
throw
"form values must be provided as an object"
;
}
var
fillResults
=
this
.
evaluate
(
function
()
{
...
...
@@ -510,7 +510,7 @@
if
(
this
.
started
)
{
this
.
log
(
"start failed: Casper has already started!"
,
"error"
);
}
this
.
log
(
'Starting
…
'
,
"info"
);
this
.
log
(
'Starting
...
'
,
"info"
);
this
.
startTime
=
new
Date
().
getTime
();
this
.
steps
=
[];
this
.
step
=
0
;
...
...
@@ -757,11 +757,11 @@
}
try
{
out
.
fields
[
name
]
=
this
.
setField
(
field
,
value
);
}
catch
(
e
)
{
if
(
e
.
name
===
"FileUploadError"
)
{
}
catch
(
e
rr
)
{
if
(
e
rr
.
name
===
"FileUploadError"
)
{
out
.
files
.
push
({
name
:
name
,
path
:
e
.
path
path
:
e
rr
.
path
});
}
else
{
throw
e
;
...
...
@@ -1194,7 +1194,7 @@
phantom
.
Casper
.
XUnitExporter
=
function
()
{
var
node
=
function
(
name
,
attributes
)
{
var
node
=
document
.
createElement
(
name
);
for
(
attrName
in
attributes
)
{
for
(
var
attrName
in
attributes
)
{
var
value
=
attributes
[
attrName
];
if
(
attributes
.
hasOwnProperty
(
attrName
)
&&
typeof
attrName
===
"string"
)
{
node
.
setAttribute
(
attrName
,
value
);
...
...
Please
register
or
sign in
to post a comment