mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
19 lines
483 B
JavaScript
19 lines
483 B
JavaScript
//! unsupported
|
|
var webpage = require('webpage');
|
|
|
|
test(function () {
|
|
var defaultPage = webpage.create();
|
|
assert_deep_equals(defaultPage.scrollPosition, {left:0,top:0});
|
|
}, "default scroll position");
|
|
|
|
test(function () {
|
|
var options = {
|
|
scrollPosition: {
|
|
left: 1,
|
|
top: 2
|
|
}
|
|
};
|
|
var customPage = webpage.create(options);
|
|
assert_deep_equals(customPage.scrollPosition, options.scrollPosition);
|
|
}, "custom scroll position");
|