blob: a7f1a6cb3c2089e2dc8cd32e4b7b36460a191c12 [file] [log] [blame]
<script>
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.setCanOpenWindows();
layoutTestController.waitUntilDone();
}
var popup = window.open('resources/destination.html');
document.write('location: ' + popup.location + '<br/>');
var props = ['href', 'pathname', 'host', 'hostname', 'hash', 'port',
'protocol', 'search'];
for (var i = 0; i < props.length; ++i) {
var prop = props[i];
document.write(prop + ': ' + popup.location[prop] + '<br/>');
}
</script>