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

Side by Side Diff: third_party/WebKit/LayoutTests/html/document-metadata/base-multiple.html

Issue 2779203002: Move tests in fast/dom/HTML{Base,Head,Meta}Element/ to html/document-metadata/ (Closed)
Patch Set: Created 3 years, 8 months 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
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <script> 7 <script>
8 description('Test the behavior of multiple base elements.'); 8 description('Test the behavior of multiple base elements.');
9 9
10 var originalBase = document.URL.replace(/[^/]*$/, ""); 10 var originalBase = document.URL.replace(/[^/]*$/, "");
11 11
12 function clean(url) 12 function clean(url)
13 { 13 {
14 if (url.length < originalBase.length) 14 if (url.length < originalBase.length)
(...skipping 28 matching lines...) Expand all
43 shouldBe("document.head.appendChild(base), document.head.appendChild(base2), cle an(anchor.href)", "'http://domain.com/base/file'"); 43 shouldBe("document.head.appendChild(base), document.head.appendChild(base2), cle an(anchor.href)", "'http://domain.com/base/file'");
44 shouldBe("base.removeAttribute('href'), clean(anchor.href)", "'http://domain.com /base2/file'"); 44 shouldBe("base.removeAttribute('href'), clean(anchor.href)", "'http://domain.com /base2/file'");
45 shouldBe("document.head.appendChild(base3), clean(anchor.href)", "'http://domain .com/base2/file'"); 45 shouldBe("document.head.appendChild(base3), clean(anchor.href)", "'http://domain .com/base2/file'");
46 46
47 document.head.removeChild(base); 47 document.head.removeChild(base);
48 document.head.removeChild(base2); 48 document.head.removeChild(base2);
49 document.head.removeChild(base3); 49 document.head.removeChild(base3);
50 </script> 50 </script>
51 </body> 51 </body>
52 </html> 52 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698