Commit 0cb6c2bb 0cb6c2bb84c44480bffea3e867d39125399c9221 by Nicolas Perriault

typos

1 parent 3792ff6e
...@@ -27,7 +27,7 @@ casper.start 'http://www.bbc.co.uk/', -> ...@@ -27,7 +27,7 @@ casper.start 'http://www.bbc.co.uk/', ->
27 27
28 # Building resulting page and image 28 # Building resulting page and image
29 buildPage = -> 29 buildPage = ->
30 this.echo 'Build result page' 30 @echo 'Build result page'
31 fs = require 'fs' 31 fs = require 'fs'
32 @viewport 624, 400 32 @viewport 624, 400
33 pageHtml = "<html bgcolor=black><body>" 33 pageHtml = "<html bgcolor=black><body>"
...@@ -36,8 +36,8 @@ buildPage = -> ...@@ -36,8 +36,8 @@ buildPage = ->
36 pageHtml += "</body></html>" 36 pageHtml += "</body></html>"
37 fs.write 'result.html', pageHtml, 'w' 37 fs.write 'result.html', pageHtml, 'w'
38 @thenOpen "file://#{fs.workingDirectory}/result.html", -> 38 @thenOpen "file://#{fs.workingDirectory}/result.html", ->
39 this.echo 'Resulting image saved to result.png' 39 @echo 'Resulting image saved to result.png'
40 this.capture 'result.png' 40 @capture 'result.png'
41 41
42 # Capture carrousel area 42 # Capture carrousel area
43 next = -> 43 next = ->
...@@ -48,10 +48,10 @@ next = -> ...@@ -48,10 +48,10 @@ next = ->
48 if currentLink < nbLinks 48 if currentLink < nbLinks
49 @click ".carousel_itemList_li[rel='#{currentLink}']" 49 @click ".carousel_itemList_li[rel='#{currentLink}']"
50 @wait 1000, -> 50 @wait 1000, ->
51 this.then next 51 @then next
52 currentLink++ 52 currentLink++
53 else 53 else
54 this.then buildPage 54 @then buildPage
55 55
56 casper.then next 56 casper.then next
57 57
......