From: Wolfram Schneider Date: Mon, 3 Feb 2014 18:18:41 +0000 (+0100) Subject: correct file type X-Git-Tag: 1.0.0~1529^2~7 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=3fc3a18add283ac313600a8a342b53f45686b4a0;hp=55d5b12cd4d37f27c30530ee75203f44e2eed6e1 correct file type --- 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); }); +