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:
dcb6f18
)
enable to set screenshot width as third parameter
author
Wolfram Schneider
<wosch@indexdata.dk>
Mon, 3 Feb 2014 11:48:38 +0000
(12:48 +0100)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Mon, 3 Feb 2014 11:48:38 +0000
(12:48 +0100)
test/phantom/screenshot.js
patch
|
blob
|
history
diff --git
a/test/phantom/screenshot.js
b/test/phantom/screenshot.js
index
150f7e4
..
a91addf
100644
(file)
--- a/
test/phantom/screenshot.js
+++ b/
test/phantom/screenshot.js
@@
-11,8
+11,8
@@
if (system.args.length === 1) {
// page.zoomFactor = 1.0;
page.viewportSize = {
- width: 1200,
- height: 1000
+ width: system.args[3] ? system.args[3] : 1200,
+ height: system.args[4] ? system.args[4] : 1000
};
page.open(url, function () {
@@
-20,6
+20,5
@@
page.open(url, function () {
setTimeout(function () {
page.render(file_png);
phantom.exit();
- }, 500);
+ }, 200);
});
-