X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fphantom%2Fscreenshot.js;h=a91addfd1463068149731b72db1b8a0c0ecc85f3;hb=2bb7ba31bc441a60f68ed1bc608a9d69ee483ae9;hp=150f7e4c2deada5a9a836ccfcd1d4c7271487dfb;hpb=2217db9e35d500810caac9cca773c50ee542d0a4;p=mkws-moved-to-github.git diff --git a/test/phantom/screenshot.js b/test/phantom/screenshot.js index 150f7e4..a91addf 100644 --- 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); }); -