Port the tests of the web page's setContent().

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