| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../js/resources/js-test-pre.js"></script> | 2 <script src="../../js/resources/js-test-pre.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; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 shouldBeEqualToString("iframe.contentDocument.querySelector('base').href", ''); | 43 shouldBeEqualToString("iframe.contentDocument.querySelector('base').href", ''); |
| 44 | 44 |
| 45 // Make sure that we don't use the opener document as the base. | 45 // Make sure that we don't use the opener document as the base. |
| 46 var newWindow = window.open('about:blank'); | 46 var newWindow = window.open('about:blank'); |
| 47 base = newWindow.document.head.appendChild(newWindow.document.createElement('bas
e')); | 47 base = newWindow.document.head.appendChild(newWindow.document.createElement('bas
e')); |
| 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 src="../../js/resources/js-test-post.js"></script> | |
| 54 <script> | 53 <script> |
| 55 | 54 |
| 56 finishJSTest(); | 55 finishJSTest(); |
| 57 | 56 |
| 58 </script> | 57 </script> |
| OLD | NEW |