Commit 6b3b906e 6b3b906e7355ec834a5ab58decb97ec0896e2922 by Brikou CARRE

other single/double quote converting

1 parent 125db333
...@@ -18,8 +18,8 @@ casper.start "http://www.bbc.co.uk/", -> ...@@ -18,8 +18,8 @@ casper.start "http://www.bbc.co.uk/", ->
18 return __utils__.findAll('#promo2_carousel_items_items li').length 18 return __utils__.findAll('#promo2_carousel_items_items li').length
19 @echo "#{nbLinks} items founds" 19 @echo "#{nbLinks} items founds"
20 # hide navigation arrows 20 # hide navigation arrows
21 @hide '.nav_left' 21 @hide ".nav_left"
22 @hide '.nav_right' 22 @hide ".nav_right"
23 @mouse.move '#promo2_carousel' 23 @mouse.move '#promo2_carousel'
24 @waitUntilVisible '.autoplay.nav_pause', -> 24 @waitUntilVisible '.autoplay.nav_pause', ->
25 @echo "Moving over pause button" 25 @echo "Moving over pause button"
...@@ -29,7 +29,7 @@ casper.start "http://www.bbc.co.uk/", -> ...@@ -29,7 +29,7 @@ casper.start "http://www.bbc.co.uk/", ->
29 @waitUntilVisible '.autoplay.nav_play', -> 29 @waitUntilVisible '.autoplay.nav_play', ->
30 @echo "Carousel has been paused" 30 @echo "Carousel has been paused"
31 # hide play button 31 # hide play button
32 @hide '.autoplay' 32 @hide ".autoplay"
33 33
34 # Capture carrousel area 34 # Capture carrousel area
35 next = -> 35 next = ->
...@@ -57,7 +57,7 @@ buildPage = -> ...@@ -57,7 +57,7 @@ buildPage = ->
57 fs.write 'result.html', pageHtml, 'w' 57 fs.write 'result.html', pageHtml, 'w'
58 @thenOpen "file://#{fs.workingDirectory}/result.html", -> 58 @thenOpen "file://#{fs.workingDirectory}/result.html", ->
59 @echo "Resulting image saved to result.png" 59 @echo "Resulting image saved to result.png"
60 @capture 'result.png' 60 @capture "result.png"
61 61
62 casper.then next 62 casper.then next
63 63
......
...@@ -21,8 +21,8 @@ casper.start("http://www.bbc.co.uk/", function() { ...@@ -21,8 +21,8 @@ casper.start("http://www.bbc.co.uk/", function() {
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");
26 this.mouse.move('#promo2_carousel'); 26 this.mouse.move('#promo2_carousel');
27 this.waitUntilVisible('.autoplay.nav_pause', function() { 27 this.waitUntilVisible('.autoplay.nav_pause', function() {
28 this.echo("Moving over pause button"); 28 this.echo("Moving over pause button");
...@@ -32,7 +32,7 @@ casper.start("http://www.bbc.co.uk/", function() { ...@@ -32,7 +32,7 @@ casper.start("http://www.bbc.co.uk/", function() {
32 this.waitUntilVisible('.autoplay.nav_play', function() { 32 this.waitUntilVisible('.autoplay.nav_play', function() {
33 this.echo("Carousel has been paused"); 33 this.echo("Carousel has been paused");
34 // hide play button 34 // hide play button
35 this.hide('.autoplay'); 35 this.hide(".autoplay");
36 }); 36 });
37 }); 37 });
38 }); 38 });
...@@ -65,7 +65,7 @@ var buildPage = function buildPage() { ...@@ -65,7 +65,7 @@ var buildPage = function buildPage() {
65 fs.write('result.html', pageHtml, 'w'); 65 fs.write('result.html', pageHtml, 'w');
66 this.thenOpen("file://" + fs.workingDirectory + "/result.html", function() { 66 this.thenOpen("file://" + fs.workingDirectory + "/result.html", function() {
67 this.echo("Resulting image saved to result.png"); 67 this.echo("Resulting image saved to result.png");
68 this.capture('result.png'); 68 this.capture("result.png");
69 }); 69 });
70 }; 70 };
71 71
......