Port the test of web page's zoom factor.

https://github.com/ariya/phantomjs/issues/12439
Port the tests of keyup, keydown, and keypress events.

https://github.com/ariya/phantomjs/issues/12439