X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fwidgets%2FMakefile;h=188a07d80bc65a666ec73a79fa28af413ae3332b;hb=5e0fe437e8612e87fb023dfa89ca2547628cb1c9;hp=39aaadaa80c1a9d8b5d72ef60d52ef1bfa7d9fe2;hpb=73477566f442547598f213c19d28272aec4d7a10;p=mkws-moved-to-github.git diff --git a/test/widgets/Makefile b/test/widgets/Makefile index 39aaada..188a07d 100644 --- a/test/widgets/Makefile +++ b/test/widgets/Makefile @@ -1,6 +1,6 @@ # Copyright (c) 2013-2014 Index Data ApS. http://indexdata.com -PHANTOMJS_TIMEOUT=18 +PHANTOMJS_TIMEOUT=30 PHANTOMJS= ../node_modules/phantomjs/bin/phantomjs IMAGES= ./images SCREENSHOT_WIDTH_HEIGHT= 1000 1200 @@ -18,6 +18,7 @@ all: help clean: rm -f index-*.html + rm -f iframe-*.html rm -f ${IMAGES}/*.png distclean: clean @@ -30,7 +31,7 @@ screenshot: ${PHANTOMJS} ${PROG} ${PHANTOMJS_URL} ${IMAGES}/tmp.$$file.png ${SCREENSHOT_WIDTH_HEIGHT} ${TIMEOUT}; \ mv -f ${IMAGES}/tmp.$$file.png ${IMAGES}/$$file.png -screenshots: clean estimate-time +screenshots: clean estimate-time iframe for t in ${TESTS}; do \ for i in $$(cat url.$$t); do \ ${MAKE} PHANTOMJS_URL="$$i" TIMEOUT=4 PREFIX=$$t screenshot; \ @@ -45,10 +46,16 @@ estimate-time: index: ( cd ${IMAGES}; ls -tr ${PREFIX}.*.png | perl -ne 'chomp; print qq{

$$_



\n}' ) > index-${PREFIX}.html +iframe: index-iframe-demo +index-iframe-demo: + ( cat url.demos | perl -ne 'chomp; print qq{

$$_

\n}' ) > iframe-demos.html + help: @echo "make [ all | clean | distclean ]" @echo " [ screenshots ]" - @echo " [ screenshot | index ]" + @echo " [ screenshot | index | iframe ]" + @echo "" + @echo "Examples: " @echo "" - @echo " [ TESTS=mike screenshots ]" + @echo "make TESTS=mike screenshots"