Commit a7bb0889 a7bb0889020f4ec9606a113b38eac65b06082a75 by Nicolas Perriault

jshint

1 parent 46690d33
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
28 * 28 *
29 */ 29 */
30 30
31 /*global CasperError, console, exports, phantom, __utils__, patchRequire*/ 31 /*global CasperError, console, exports, phantom, __utils__, patchRequire, require:true*/
32 32
33 var require = patchRequire(require); 33 var require = patchRequire(require);
34 var colorizer = require('colorizer'); 34 var colorizer = require('colorizer');
...@@ -1557,12 +1557,9 @@ Casper.prototype.then = function then(step) { ...@@ -1557,12 +1557,9 @@ Casper.prototype.then = function then(step) {
1557 * @see Casper#click 1557 * @see Casper#click
1558 * @see Casper#then 1558 * @see Casper#then
1559 */ 1559 */
1560 Casper.prototype.thenClick = function thenClick(selector, then, fallbackToHref) { 1560 Casper.prototype.thenClick = function thenClick(selector, then) {
1561 "use strict"; 1561 "use strict";
1562 this.checkStarted(); 1562 this.checkStarted();
1563 if (arguments.length > 2) {
1564 this.emit("deprecated", "The thenClick() method does not process the fallbackToHref argument since 0.6");
1565 }
1566 this.then(function _step() { 1563 this.then(function _step() {
1567 this.click(selector); 1564 this.click(selector);
1568 }); 1565 });
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
28 * 28 *
29 */ 29 */
30 30
31 /*global CasperError, console, exports, phantom, patchRequire*/ 31 /*global CasperError, console, exports, phantom, patchRequire, require:true*/
32 32
33 var require = patchRequire(require); 33 var require = patchRequire(require);
34 var utils = require('utils'); 34 var utils = require('utils');
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
28 * 28 *
29 */ 29 */
30 30
31 /*global exports, console, patchRequire*/ 31 /*global exports, console, patchRequire, require:true*/
32 32
33 var require = patchRequire(require); 33 var require = patchRequire(require);
34 var fs = require('fs'); 34 var fs = require('fs');
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
28 * 28 *
29 */ 29 */
30 30
31 /*global patchRequire*/ 31 /*global patchRequire, require:true*/
32 32
33 var require = patchRequire(require); 33 var require = patchRequire(require);
34 var utils = require('utils'); 34 var utils = require('utils');
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
28 * 28 *
29 */ 29 */
30 30
31 /*global CasperError, exports, patchRequire*/ 31 /*global CasperError, exports, patchRequire, require:true*/
32 32
33 var require = patchRequire(require); 33 var require = patchRequire(require);
34 var utils = require('utils'); 34 var utils = require('utils');
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
28 * 28 *
29 */ 29 */
30 30
31 /*global CasperError, console, exports, phantom, patchRequire*/ 31 /*global CasperError, console, exports, phantom, patchRequire, require:true*/
32 32
33 var require = patchRequire(require); 33 var require = patchRequire(require);
34 var utils = require('utils'); 34 var utils = require('utils');
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
28 * 28 *
29 */ 29 */
30 30
31 /*global CasperError, exports, phantom, __utils__, patchRequire*/ 31 /*global CasperError, exports, phantom, __utils__, patchRequire, require:true*/
32 32
33 var require = patchRequire(require); 33 var require = patchRequire(require);
34 var fs = require('fs'); 34 var fs = require('fs');
...@@ -1005,7 +1005,8 @@ Tester.prototype.exec = function exec(file) { ...@@ -1005,7 +1005,8 @@ Tester.prototype.exec = function exec(file) {
1005 "use strict"; 1005 "use strict";
1006 file = this.filter('exec.file', file) || file; 1006 file = this.filter('exec.file', file) || file;
1007 if (!fs.isFile(file) || !utils.isJsFile(file)) { 1007 if (!fs.isFile(file) || !utils.isJsFile(file)) {
1008 var e = new CasperError(f("Cannot exec %s: can only exec() files with .js or .coffee extensions", file)); 1008 var e = new CasperError(f("Cannot exec %s: can only exec() files with .js or .coffee extensions",
1009 file));
1009 e.fileName = e.file = e.sourceURL = file; 1010 e.fileName = e.file = e.sourceURL = file;
1010 throw e; 1011 throw e;
1011 } 1012 }
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
28 * 28 *
29 */ 29 */
30 30
31 /*global CasperError, console, exports, phantom, patchRequire*/ 31 /*global CasperError, console, exports, phantom, patchRequire, require:true*/
32 32
33 var require = patchRequire(require); 33 var require = patchRequire(require);
34 34
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
28 * 28 *
29 */ 29 */
30 30
31 /*global CasperError, console, exports, phantom, patchRequire*/ 31 /*global CasperError, console, exports, phantom, patchRequire, require:true*/
32 32
33 var require = patchRequire(require); 33 var require = patchRequire(require);
34 var utils = require('utils'); 34 var utils = require('utils');
......