Use testRunner instead of layoutTestController in fast/doctypes, dom, dynamic, encodi...
[WebKit-https.git] / LayoutTests / fast / dom / Window / window-open-pending-url.html
1 <script>
2 if (window.testRunner) {
3     testRunner.dumpAsText();
4     testRunner.setCanOpenWindows();
5     testRunner.waitUntilDone();
6 }
7
8 var popup = window.open('resources/destination.html');
9 document.write('location: ' + popup.location + '<br/>');
10 var props = ['href', 'pathname', 'host', 'hostname', 'hash', 'port',
11              'protocol', 'search'];
12 for (var i = 0; i < props.length; ++i) {
13   var prop = props[i];
14   document.write(prop + ': ' + popup.location[prop] + '<br/>');
15 }
16 </script>