projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a38b0d2
)
add timeout argument, part of MKWS-276
author
Wolfram Schneider
<wosch@indexdata.dk>
Thu, 9 Oct 2014 14:11:56 +0000
(14:11 +0000)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Thu, 9 Oct 2014 14:11:56 +0000
(14:11 +0000)
test/phantom/screenshot.js
patch
|
blob
|
history
diff --git
a/test/phantom/screenshot.js
b/test/phantom/screenshot.js
index
ac4de3b
..
40f9937
100644
(file)
--- a/
test/phantom/screenshot.js
+++ b/
test/phantom/screenshot.js
@@
-3,6
+3,7
@@
var page = require('webpage').create(),
var url = system.args[1] || 'http://www.indexdata.com/';
var file_png = system.args[2] || 'indexdata.png';
+var timeout = system.args[5] ? system.args[5] : 0.2;
if (system.args.length === 1) {
console.log('Usage: screenshot.js <some URL> <file.png>');
@@
-25,5
+26,5
@@
page.open(url, function () {
setTimeout(function () {
var ret = page.render(file_png);
phantom.exit();
- }, 200);
+ }, timeout * 1000);
});