puppeteer/third_party/phantomjs/test/module/webpage/zoom-factor.js
2017-05-11 00:06:41 -07:00

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