//! unsupported var webpage = require('webpage'); test(function () { var page = webpage.create(); var expectedContent = '
Test div
'; var expectedLocation = 'http://www.phantomjs.org/'; page.setContent(expectedContent, expectedLocation); var actualContent = page.evaluate(function() { return document.documentElement.textContent; }); assert_equals(actualContent, 'Test div'); var actualLocation = page.evaluate(function() { return window.location.href; }); assert_equals(actualLocation, expectedLocation); }, "manually set page content and location");