file cleanup
authorWolfram Schneider <wosch@indexdata.dk>
Thu, 30 Jan 2014 22:44:54 +0000 (22:44 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Thu, 30 Jan 2014 22:44:54 +0000 (22:44 +0000)
test/phantom/screenshot.js [new file with mode: 0644]
test/spec-dev/screenshot.js [deleted file]

diff --git a/test/phantom/screenshot.js b/test/phantom/screenshot.js
new file mode 100644 (file)
index 0000000..150f7e4
--- /dev/null
@@ -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 <some URL> <file.png>');
+    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 (file)
index 150f7e4..0000000
+++ /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 <some URL> <file.png>');
-    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);
-});
-