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
test languages
[mkws-moved-to-github.git]
/
test
/
phantom
/
screenshot.js
diff --git
a/test/phantom/screenshot.js
b/test/phantom/screenshot.js
index
8fea863
..
22f044f
100644
(file)
--- a/
test/phantom/screenshot.js
+++ b/
test/phantom/screenshot.js
@@
-5,11
+5,11
@@
var url = system.args[1] || 'http://www.indexdata.com/';
var file_png = system.args[2] || 'indexdata.png';
var timeout = system.args[5] ? system.args[5] : 0.2;
var file_png = system.args[2] || 'indexdata.png';
var timeout = system.args[5] ? system.args[5] : 0.2;
-function usage (message) {
+function usage(message) {
if (message) {
console.log(message + "\n");
}
if (message) {
console.log(message + "\n");
}
- console.log('Usage: screenshot.js <some URL> <file.png>');
+ console.log('Usage: screenshot.js <some URL> <file.png> <width px> <height px> <timeout sec>');
phantom.exit();
}
phantom.exit();
}