Commit b1ed9a7e b1ed9a7e7681d6cb727de01fe54d51b26a7c1c3d by Brikou CARRE

others single/double quote converts

1 parent 6b3b906e
...@@ -20,13 +20,13 @@ casper.start "http://www.bbc.co.uk/", -> ...@@ -20,13 +20,13 @@ casper.start "http://www.bbc.co.uk/", ->
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"
26 @mouse.move '.autoplay.nav_pause' 26 @mouse.move ".autoplay.nav_pause"
27 @click ".autoplay.nav_pause" 27 @click ".autoplay.nav_pause"
28 @echo "Clicked on pause button" 28 @echo "Clicked on pause button"
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"
...@@ -54,7 +54,7 @@ buildPage = -> ...@@ -54,7 +54,7 @@ buildPage = ->
54 for image in images 54 for image in images
55 pageHtml += "<img src='file://#{fs.workingDirectory}/#{image}'><br>" 55 pageHtml += "<img src='file://#{fs.workingDirectory}/#{image}'><br>"
56 pageHtml += "</body></html>" 56 pageHtml += "</body></html>"
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"
......
...@@ -23,13 +23,13 @@ casper.start("http://www.bbc.co.uk/", function() { ...@@ -23,13 +23,13 @@ casper.start("http://www.bbc.co.uk/", function() {
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");
29 this.mouse.move('.autoplay.nav_pause'); 29 this.mouse.move(".autoplay.nav_pause");
30 this.click(".autoplay.nav_pause"); 30 this.click(".autoplay.nav_pause");
31 this.echo("Clicked on pause button"); 31 this.echo("Clicked on pause button");
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");
...@@ -62,7 +62,7 @@ var buildPage = function buildPage() { ...@@ -62,7 +62,7 @@ var buildPage = function buildPage() {
62 pageHtml += "<img src='file://" + fs.workingDirectory + "/" + image + "'><br>"; 62 pageHtml += "<img src='file://" + fs.workingDirectory + "/" + image + "'><br>";
63 }); 63 });
64 pageHtml += "</body></html>"; 64 pageHtml += "</body></html>";
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");
......