Commit a7bb0889 a7bb0889020f4ec9606a113b38eac65b06082a75 by Nicolas Perriault

jshint

1 parent 46690d33
......@@ -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);
});
......
......@@ -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');
......
......@@ -28,7 +28,7 @@
*
*/
/*global exports, console, patchRequire*/
/*global exports, console, patchRequire, require:true*/
var require = patchRequire(require);
var fs = require('fs');
......
......@@ -28,7 +28,7 @@
*
*/
/*global patchRequire*/
/*global patchRequire, require:true*/
var require = patchRequire(require);
var utils = require('utils');
......
......@@ -28,7 +28,7 @@
*
*/
/*global CasperError, exports, patchRequire*/
/*global CasperError, exports, patchRequire, require:true*/
var require = patchRequire(require);
var utils = require('utils');
......
......@@ -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');
......
......@@ -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;
}
......
......@@ -28,7 +28,7 @@
*
*/
/*global CasperError, console, exports, phantom, patchRequire*/
/*global CasperError, console, exports, phantom, patchRequire, require:true*/
var require = patchRequire(require);
......
......@@ -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');
......