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
ebdf5e89
...
ebdf5e89f26bd7df969a321d6a06dd6816ea69d2
authored
2013-03-03 11:52:13 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
upgraded jshint to 1.0.0
1 parent
5cad7e63
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
18 additions
and
20 deletions
.jshintconfig
.jshintignore
.travis.yml
bin/bootstrap.js
modules/casper.js
modules/cli.js
modules/clientutils.js
modules/colorizer.js
modules/mouse.js
modules/pagestack.js
modules/tester.js
modules/utils.js
modules/xunit.js
.jshintconfig
View file @
ebdf5e8
...
...
@@ -19,7 +19,6 @@
"predef" : [
"exports",
"phantom",
"require",
"window"
]
}
...
...
.jshintignore
View file @
ebdf5e8
...
...
@@ -2,8 +2,6 @@ docs
modules/vendors
modules/events.js
modules/querystring.js
samples
tests/clitests/tester/
tests/site
tests/testdir
samples/**
tests/**
tmp
...
...
.travis.yml
View file @
ebdf5e8
...
...
@@ -3,7 +3,7 @@ branches:
-
"
master"
-
"
1.0"
before_script
:
-
"
npm
install
-g
jshint@
0.9.1
"
-
"
npm
install
-g
jshint@
1.0.0
"
-
"
phantomjs
--version"
-
"
export
PHANTOMJS_EXECUTABLE='phantomjs
--local-to-remote-url-access=yes
--ignore-ssl-errors=yes'"
script
:
...
...
bin/bootstrap.js
View file @
ebdf5e8
...
...
@@ -28,8 +28,8 @@
*
*/
/*global console
phantom requir
e*/
/*jshint maxstatements:30 maxcomplexity:10*/
/*global console
, phantom, require:tru
e*/
/*jshint maxstatements:30
,
maxcomplexity:10*/
// phantom check
if
(
!
phantom
)
{
...
...
modules/casper.js
View file @
ebdf5e8
...
...
@@ -28,7 +28,7 @@
*
*/
/*global CasperError
console exports phantom __utils__
patchRequire*/
/*global CasperError
, console, exports, phantom, __utils__,
patchRequire*/
var
require
=
patchRequire
(
require
);
var
colorizer
=
require
(
'colorizer'
);
...
...
modules/cli.js
View file @
ebdf5e8
...
...
@@ -28,7 +28,7 @@
*
*/
/*global CasperError
console exports phantom
patchRequire*/
/*global CasperError
, console, exports, phantom,
patchRequire*/
var
require
=
patchRequire
(
require
);
var
utils
=
require
(
'utils'
);
...
...
modules/clientutils.js
View file @
ebdf5e8
...
...
@@ -28,7 +28,7 @@
*
*/
/*global console
escape exports NodeList
window*/
/*global console
, escape, exports, NodeList,
window*/
(
function
(
exports
)
{
"use strict"
;
...
...
@@ -76,7 +76,7 @@
* @return string
*/
this
.
decode
=
function
decode
(
str
)
{
/*jshint maxstatements:30 maxcomplexity:30 */
/*jshint maxstatements:30
,
maxcomplexity:30 */
var
c1
,
c2
,
c3
,
c4
,
i
=
0
,
len
=
str
.
length
,
out
=
""
;
while
(
i
<
len
)
{
do
{
...
...
modules/colorizer.js
View file @
ebdf5e8
...
...
@@ -28,7 +28,7 @@
*
*/
/*global exports
console
patchRequire*/
/*global exports
, console,
patchRequire*/
var
require
=
patchRequire
(
require
);
var
fs
=
require
(
'fs'
);
...
...
modules/mouse.js
View file @
ebdf5e8
...
...
@@ -28,7 +28,7 @@
*
*/
/*global CasperError
exports
patchRequire*/
/*global CasperError
, exports,
patchRequire*/
var
require
=
patchRequire
(
require
);
var
utils
=
require
(
'utils'
);
...
...
modules/pagestack.js
View file @
ebdf5e8
...
...
@@ -28,7 +28,7 @@
*
*/
/*global CasperError
console exports phantom
patchRequire*/
/*global CasperError
, console, exports, phantom,
patchRequire*/
var
require
=
patchRequire
(
require
);
var
utils
=
require
(
'utils'
);
...
...
modules/tester.js
View file @
ebdf5e8
...
...
@@ -28,7 +28,7 @@
*
*/
/*global CasperError
exports phantom __utils__
patchRequire*/
/*global CasperError
, exports, phantom, __utils__,
patchRequire*/
var
require
=
patchRequire
(
require
);
var
fs
=
require
(
'fs'
);
...
...
@@ -924,7 +924,7 @@ Tester.prototype.comment = function comment(message) {
*/
Tester
.
prototype
.
done
=
function
done
()
{
"use strict"
;
/*jshint maxstatements:20 maxcomplexity:20*/
/*jshint maxstatements:20
,
maxcomplexity:20*/
var
planned
,
config
=
this
.
currentSuite
.
config
;
if
(
utils
.
isNumber
(
arguments
[
0
]))
{
this
.
casper
.
warn
(
'done() `planned` arg is deprecated as of 1.1'
);
...
...
modules/utils.js
View file @
ebdf5e8
...
...
@@ -28,7 +28,7 @@
*
*/
/*global CasperError
console exports phantom
patchRequire*/
/*global CasperError
, console, exports, phantom,
patchRequire*/
var
require
=
patchRequire
(
require
);
...
...
modules/xunit.js
View file @
ebdf5e8
...
...
@@ -28,7 +28,7 @@
*
*/
/*global CasperError
console exports phantom
patchRequire*/
/*global CasperError
, console, exports, phantom,
patchRequire*/
var
require
=
patchRequire
(
require
);
var
utils
=
require
(
'utils'
);
...
...
@@ -166,5 +166,6 @@ XUnitExporter.prototype.setResults = function setResults(results) {
if
(
!
(
results
instanceof
TestSuiteResult
))
{
throw
new
CasperError
(
'Invalid results type.'
);
}
return
this
.
results
=
results
;
this
.
results
=
results
;
return
results
;
};
...
...
Please
register
or
sign in
to post a comment