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
rewrite test to display better error messages and avoid race conditions, MKWS-135
[mkws-moved-to-github.git]
/
test
/
phantom
/
screenshot.js
diff --git
a/test/phantom/screenshot.js
b/test/phantom/screenshot.js
index
150f7e4
..
ac4de3b
100644
(file)
--- a/
test/phantom/screenshot.js
+++ b/
test/phantom/screenshot.js
@@
-11,15
+11,19
@@
if (system.args.length === 1) {
// page.zoomFactor = 1.0;
page.viewportSize = {
// 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.clipRect = {
+ width: page.viewportSize.width,
+ height: page.viewportSize.height
};
page.open(url, function () {
// small delay
setTimeout(function () {
};
page.open(url, function () {
// small delay
setTimeout(function () {
- page.render(file_png);
+ var ret = page.render(file_png);
phantom.exit();
phantom.exit();
- }, 500);
+ }, 200);
});
});
-