Port the tests of web page properties and functions.

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