OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../../js/resources/js-test-pre.js"></script> | 2 <script src="../../../resources/js-test.js"></script> |
3 <base href="foo/bar/"> | 3 <base href="foo/bar/"> |
4 <body></body> | 4 <body></body> |
5 <script> | 5 <script> |
6 | 6 |
7 if (window.testRunner) { | 7 if (window.testRunner) { |
8 // FIXME: setCanOpenWindows needs the test to be async or the Apple port cra
shes. | 8 // FIXME: setCanOpenWindows needs the test to be async or the Apple port cra
shes. |
9 // https://bugs.webkit.org/show_bug.cgi?id=99465 | 9 // https://bugs.webkit.org/show_bug.cgi?id=99465 |
10 window.jsTestIsAsync = true; | 10 window.jsTestIsAsync = true; |
11 testRunner.waitUntilDone(); | 11 testRunner.waitUntilDone(); |
12 testRunner.setCanOpenWindows(); | 12 testRunner.setCanOpenWindows(); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 base.setAttribute('href', 'foo/bar/'); | 48 base.setAttribute('href', 'foo/bar/'); |
49 shouldBeEqualToString("newWindow.document.querySelector('base').href", ''); | 49 shouldBeEqualToString("newWindow.document.querySelector('base').href", ''); |
50 newWindow.close(); | 50 newWindow.close(); |
51 | 51 |
52 </script> | 52 </script> |
53 <script> | 53 <script> |
54 | 54 |
55 finishJSTest(); | 55 finishJSTest(); |
56 | 56 |
57 </script> | 57 </script> |
OLD | NEW |