projects
/
mkws-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
set page.clipRect values
[mkws-moved-to-github.git]
/
test
/
phantom
/
screenshot.js
diff --git
a/test/phantom/screenshot.js
b/test/phantom/screenshot.js
index
a91addf
..
08e230d
100644
(file)
--- a/
test/phantom/screenshot.js
+++ b/
test/phantom/screenshot.js
@@
-15,6
+15,11
@@
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 () {