Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: LayoutTests/fast/dom/HTMLBaseElement/href-attribute-resolves-with-respect-to-document.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698