X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2FMakefile;h=984ce8593912cc0096b66330373403253ca28fae;hb=ad3295052fac50a2f7b9a9e50043dc02a8d119ac;hp=7e38ebcfe957fee0221e75e8f0e9fabfacbfa3f5;hpb=a980281a2a70fbbf6b0483e0f50625d2b7d17e02;p=mkws-moved-to-github.git diff --git a/test/Makefile b/test/Makefile index 7e38ebc..984ce85 100644 --- a/test/Makefile +++ b/test/Makefile @@ -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 1000 + jsbeautifier jsb indent: for i in ./spec*/*.js ./js/*.js ./phantom/*.js; do \ jsbeautifier -j $$i > $@.tmp && mv -f $@.tmp $$i; \ @@ -41,5 +45,6 @@ node_modules: npm install ${NPM_INSTALL_FLAGS} jQuery xmlhttprequest jsdom request jasmine-node phantomjs help: - @echo "make [ all | check | phantomjs | clean | distclean ]" + @echo "make [ all | check | clean | distclean ]" + @echo " [ phantomjs | screenshot ]" @echo " [ jsbeautifier | node-modules ]"