X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fphantom%2Fscreenshot.js;h=ac4de3b9f17358f33b47e897228349afd2a09280;hb=273101565ca5733fcd53b3d9e6004224ff076260;hp=a91addfd1463068149731b72db1b8a0c0ecc85f3;hpb=555e9f7c667615844f188fe538b2fd52138ccd3b;p=mkws-moved-to-github.git diff --git a/test/phantom/screenshot.js b/test/phantom/screenshot.js index a91addf..ac4de3b 100644 --- a/test/phantom/screenshot.js +++ b/test/phantom/screenshot.js @@ -15,10 +15,15 @@ page.viewportSize = { height: system.args[4] ? system.args[4] : 1000 }; +page.clipRect = { + width: page.viewportSize.width, + height: page.viewportSize.height +}; + page.open(url, function () { // small delay setTimeout(function () { - page.render(file_png); + var ret = page.render(file_png); phantom.exit(); }, 200); });