Move casper into grunt file and OR into opening images

This commit is contained in:
Peter Cottle 2015-03-27 14:20:29 -07:00
parent c469368727
commit 461da3b42c
2 changed files with 9 additions and 3 deletions

View file

@ -1,5 +1,6 @@
var screenshotCounter = 0;
var screenshotRoot = './src/__tests__/casperjs/screenshots/entirePage';
var CasperUtils = {
@ -83,7 +84,7 @@ var CasperUtils = {
entirePage: function () {
screenshotCounter++;
casper.capture('screenshots/entirePage' + screenshotCounter + '.png', {
casper.capture(screenshotRoot + screenshotCounter + '.png', {
top: 0,
left: 0,
// These seem to be the hardcoded viewport dimensions