X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2FMakefile;h=984ce8593912cc0096b66330373403253ca28fae;hb=ad3295052fac50a2f7b9a9e50043dc02a8d119ac;hp=cecb5fc20052539b256626e7774baacaf951eb39;hpb=d2481365789565539ddf25550910ddb9be29c701;p=mkws-moved-to-github.git diff --git a/test/Makefile b/test/Makefile index cecb5fc..984ce85 100644 --- a/test/Makefile +++ b/test/Makefile @@ -5,7 +5,8 @@ MIKE = PATH=$$PATH:/usr/local/lib/node-v0.10.24-linux-x64/bin NPM_INSTALL_FLAGS=-q PHANTOMJS= ./node_modules/phantomjs/bin/phantomjs PHANTOMJS_URL= https://mkws-dev.indexdata.com/jasmine-popup.html -PHANTOMJS_TIMEOUT= 8 +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 ]"