From: Wolfram Schneider Date: Thu, 30 Jan 2014 22:44:54 +0000 (+0000) Subject: file cleanup X-Git-Tag: 1.0.0~1552 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=2217db9e35d500810caac9cca773c50ee542d0a4;p=mkws-moved-to-github.git file cleanup --- diff --git a/test/phantom/screenshot.js b/test/phantom/screenshot.js new file mode 100644 index 0000000..150f7e4 --- /dev/null +++ b/test/phantom/screenshot.js @@ -0,0 +1,25 @@ +var page = require('webpage').create(), + system = require('system'); + +var url = system.args[1] || 'http://www.indexdata.com/'; +var file_png = system.args[2] || 'indexdata.png'; + +if (system.args.length === 1) { + console.log('Usage: screenshot.js '); + phantom.exit(); +} + +// page.zoomFactor = 1.0; +page.viewportSize = { + width: 1200, + height: 1000 +}; + +page.open(url, function () { + // small delay + setTimeout(function () { + page.render(file_png); + phantom.exit(); + }, 500); +}); + diff --git a/test/spec-dev/screenshot.js b/test/spec-dev/screenshot.js deleted file mode 100644 index 150f7e4..0000000 --- a/test/spec-dev/screenshot.js +++ /dev/null @@ -1,25 +0,0 @@ -var page = require('webpage').create(), - system = require('system'); - -var url = system.args[1] || 'http://www.indexdata.com/'; -var file_png = system.args[2] || 'indexdata.png'; - -if (system.args.length === 1) { - console.log('Usage: screenshot.js '); - phantom.exit(); -} - -// page.zoomFactor = 1.0; -page.viewportSize = { - width: 1200, - height: 1000 -}; - -page.open(url, function () { - // small delay - setTimeout(function () { - page.render(file_png); - phantom.exit(); - }, 500); -}); -