removed empty quotes
Showing
6 changed files
with
8 additions
and
8 deletions
... | @@ -19,7 +19,7 @@ casper.start('http://www.bbc.co.uk/', function() { | ... | @@ -19,7 +19,7 @@ casper.start('http://www.bbc.co.uk/', function() { |
19 | nbLinks = this.evaluate(function() { | 19 | nbLinks = this.evaluate(function() { |
20 | return __utils__.findAll('#promo2_carousel_items_items li').length; | 20 | return __utils__.findAll('#promo2_carousel_items_items li').length; |
21 | }); | 21 | }); |
22 | this.echo("" + nbLinks + " items founds"); | 22 | this.echo(nbLinks + " items founds"); |
23 | // hide navigation arrows | 23 | // hide navigation arrows |
24 | this.hide('.nav_left'); | 24 | this.hide('.nav_left'); |
25 | this.hide('.nav_right'); | 25 | this.hide('.nav_right'); | ... | ... |
... | @@ -36,7 +36,7 @@ var start = function start(link) { | ... | @@ -36,7 +36,7 @@ var start = function start(link) { |
36 | var addLinks = function addLinks(link) { | 36 | var addLinks = function addLinks(link) { |
37 | this.then(function() { | 37 | this.then(function() { |
38 | var found = this.evaluate(searchLinks); | 38 | var found = this.evaluate(searchLinks); |
39 | this.echo("" + found.length + " links found on " + link); | 39 | this.echo(found.length + " links found on " + link); |
40 | links = links.concat(found); | 40 | links = links.concat(found); |
41 | }); | 41 | }); |
42 | }; | 42 | }; | ... | ... |
... | @@ -10,7 +10,7 @@ casper.start(); | ... | @@ -10,7 +10,7 @@ casper.start(); |
10 | 10 | ||
11 | casper.each(links, function(self, link) { | 11 | casper.each(links, function(self, link) { |
12 | this.thenOpen(link, function() { | 12 | this.thenOpen(link, function() { |
13 | this.echo("" + (this.getTitle()) + " - " + link); | 13 | this.echo((this.getTitle()) + " - " + link); |
14 | }); | 14 | }); |
15 | }); | 15 | }); |
16 | 16 | ... | ... |
... | @@ -32,7 +32,7 @@ casper.then(function() { | ... | @@ -32,7 +32,7 @@ casper.then(function() { |
32 | 32 | ||
33 | casper.run(function() { | 33 | casper.run(function() { |
34 | // display results | 34 | // display results |
35 | this.echo("" + links.length + " links found:"); | 35 | this.echo(links.length + " links found:"); |
36 | this.echo(" - " + links.join("\n - ")); | 36 | this.echo(" - " + links.join("\n - ")); |
37 | this.exit(); | 37 | this.exit(); |
38 | }); | 38 | }); | ... | ... |
... | @@ -49,7 +49,7 @@ casper.each(terms, function(self, term) { | ... | @@ -49,7 +49,7 @@ casper.each(terms, function(self, term) { |
49 | term: term, | 49 | term: term, |
50 | score: score | 50 | score: score |
51 | }); | 51 | }); |
52 | self.echo("" + term + ": " + score); | 52 | self.echo(term + ": " + score); |
53 | }); | 53 | }); |
54 | }); | 54 | }); |
55 | 55 | ... | ... |
... | @@ -13,7 +13,7 @@ var suites = [ | ... | @@ -13,7 +13,7 @@ var suites = [ |
13 | this.echo("Page title: " + (this.getTitle())); | 13 | this.echo("Page title: " + (this.getTitle())); |
14 | }); | 14 | }); |
15 | this.then(function() { | 15 | this.then(function() { |
16 | this.echo("" + (this.evaluate(countLinks)) + " links"); | 16 | this.echo((this.evaluate(countLinks)) + " links"); |
17 | }); | 17 | }); |
18 | }, function() { | 18 | }, function() { |
19 | this.echo('Suite 2'); | 19 | this.echo('Suite 2'); |
... | @@ -21,7 +21,7 @@ var suites = [ | ... | @@ -21,7 +21,7 @@ var suites = [ |
21 | this.echo("Page title: " + (this.getTitle())); | 21 | this.echo("Page title: " + (this.getTitle())); |
22 | }); | 22 | }); |
23 | this.then(function() { | 23 | this.then(function() { |
24 | this.echo("" + (this.evaluate(countLinks)) + " links"); | 24 | this.echo((this.evaluate(countLinks)) + " links"); |
25 | }); | 25 | }); |
26 | }, function() { | 26 | }, function() { |
27 | this.echo('Suite 3'); | 27 | this.echo('Suite 3'); |
... | @@ -29,7 +29,7 @@ var suites = [ | ... | @@ -29,7 +29,7 @@ var suites = [ |
29 | this.echo("Page title: " + (this.getTitle())); | 29 | this.echo("Page title: " + (this.getTitle())); |
30 | }); | 30 | }); |
31 | this.then(function() { | 31 | this.then(function() { |
32 | this.echo("" + (this.evaluate(countLinks)) + " links"); | 32 | this.echo((this.evaluate(countLinks)) + " links"); |
33 | }); | 33 | }); |
34 | } | 34 | } |
35 | ]; | 35 | ]; | ... | ... |
-
Please register or sign in to post a comment