new target screenshots
authorWolfram Schneider <wosch@indexdata.dk>
Mon, 3 Feb 2014 17:52:24 +0000 (18:52 +0100)
committerWolfram Schneider <wosch@indexdata.dk>
Mon, 3 Feb 2014 17:52:24 +0000 (18:52 +0100)
test/Makefile

index 7e38ebc..2c83086 100644 (file)
@@ -6,6 +6,7 @@ NPM_INSTALL_FLAGS=-q
 PHANTOMJS=     ./node_modules/phantomjs/bin/phantomjs
 PHANTOMJS_URL= https://mkws-dev.indexdata.com/jasmine-popup.html       
 PHANTOMJS_TIMEOUT=     12      
+IMAGES=        ./images
 
 all: check
 
@@ -31,6 +32,9 @@ terse:
 phantomjs:
        ${PHANTOMJS} phantom/evaluate.js ${PHANTOMJS_URL} ${PHANTOMJS_TIMEOUT}
 
+screenshot:
+       ${PHANTOMJS} phantom/screenshot.js ${PHANTOMJS_URL} ${IMAGES}/screenshot.png 1200
+
 jsbeautifier jsb indent:
        for i in ./spec*/*.js ./js/*.js ./phantom/*.js; do \
          jsbeautifier -j $$i > $@.tmp && mv -f $@.tmp $$i; \