mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
19 lines
434 B
JavaScript
19 lines
434 B
JavaScript
//! unsupported
|
|
var webpage = require('webpage');
|
|
|
|
test(function () {
|
|
var page = webpage.create();
|
|
assert_equals(page.zoomFactor, 1.0);
|
|
|
|
page.zoomFactor = 1.5;
|
|
assert_equals(page.zoomFactor, 1.5);
|
|
|
|
page.zoomFactor = 2.0;
|
|
assert_equals(page.zoomFactor, 2.0);
|
|
|
|
page.zoomFactor = 0.5;
|
|
assert_equals(page.zoomFactor, 0.5);
|
|
}, "page.zoomFactor");
|
|
|
|
// TODO: render using zoomFactor != 1 and check the result
|