-phantomjs:
- @# ${PHANTOMJS} phantom/evaluate.js https://mkws-dev.indexdata.com/jasmine-local-popup.html
- ${PHANTOMJS} phantom/evaluate.js https://mkws-dev.indexdata.com/jasmine-popup.html
+phantomjs p: check-js apache-stop apache-start _phantomjs
+ ${MAKE} apache-stop
+
+_phantomjs:
+ ./bin/bomb --timeout="${PHANTOMJS_TIMEOUT}.5" ${PHANTOMJS} phantom/run-jasmine.js ${PHANTOMJS_URL} ${PHANTOMJS_TIMEOUT}
+
+phantomjs-all p-all:
+ ${MAKE} phantomjs PHANTOMJS_PATH=jasmine-local-popup.html
+ ${MAKE} phantomjs PHANTOMJS_PATH=jasmine-popup.html
+ ${MAKE} phantomjs PHANTOMJS_PATH=jasmine-cms-popup.html
+ ${MAKE} phantomjs PHANTOMJS_PATH=jasmine.html
+
+mike-test:
+ $(MAKE) _phantomjs PHANTOMJS_URL=http://x.example.indexdata.com/jasmine-popup.html
+
+screenshot:
+ ${PHANTOMJS} phantom/screenshot.js ${PHANTOMJS_URL} ${IMAGES}/screenshot.png 1200 1000
+
+screenshot-mkws:
+ for i in ${SCREENSHOT_WIDTH}; do \
+ ${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.png $$i 1000 & \
+ done; wait
+ ls -l ${IMAGES}
+
+screenshots: check
+ ${MAKE} -C ./widgets $@