correct file type
authorWolfram Schneider <wosch@indexdata.dk>
Mon, 3 Feb 2014 18:18:41 +0000 (19:18 +0100)
committerWolfram Schneider <wosch@indexdata.dk>
Mon, 3 Feb 2014 18:18:41 +0000 (19:18 +0100)
test/Makefile
test/phantom/screenshot.js

index 78bc630..5f059cc 100644 (file)
@@ -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 \
index 08e230d..316b03c 100644 (file)
@@ -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);
 });
+