From 3fc3a18add283ac313600a8a342b53f45686b4a0 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Mon, 3 Feb 2014 19:18:41 +0100 Subject: [PATCH] correct file type --- test/Makefile | 7 +++++-- test/phantom/screenshot.js | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/test/Makefile b/test/Makefile index 78bc630..5f059cc 100644 --- a/test/Makefile +++ b/test/Makefile @@ -38,12 +38,15 @@ screenshot: screenshot-mkws: for i in ${SCREENSHOT_WIDTH}; do \ - ${PHANTOMJS} phantom/screenshot.js http://mkws.indexdata.com ${IMAGES}/mkws-$$i $$i 2800 & \ + ${PHANTOMJS} phantom/screenshot.js http://mkws.indexdata.com ${IMAGES}/mkws-$$i.png $$i 1000 & \ done; wait + ls -l ${IMAGES} + screenshot-indexdata: for i in ${SCREENSHOT_WIDTH}; do \ - ${PHANTOMJS} phantom/screenshot.js http://www.indexdata.com ${IMAGES}/indexdata-$$i $$i 1200 & \ + ${PHANTOMJS} phantom/screenshot.js http://www.indexdata.com ${IMAGES}/indexdata-$$i.png $$i 1000 & \ done; wait + ls -l ${IMAGES} jsbeautifier jsb indent: for i in ./spec*/*.js ./js/*.js ./phantom/*.js; do \ diff --git a/test/phantom/screenshot.js b/test/phantom/screenshot.js index 08e230d..316b03c 100644 --- a/test/phantom/screenshot.js +++ b/test/phantom/screenshot.js @@ -23,7 +23,8 @@ page.clipRect = { page.open(url, function () { // small delay setTimeout(function () { - page.render(file_png); + var ret = page.render(file_png); phantom.exit(); }, 200); }); + -- 1.7.10.4