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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLBaseElement/script-tests/multiple-base-elements.js

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/dom/HTMLBaseElement/script-tests/multiple-base-elements.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLBaseElement/script-tests/multiple-base-elements.js b/third_party/WebKit/LayoutTests/fast/dom/HTMLBaseElement/script-tests/multiple-base-elements.js
deleted file mode 100644
index 06ff0078782709336e24f311369cc12d2e867382..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLBaseElement/script-tests/multiple-base-elements.js
+++ /dev/null
@@ -1,42 +0,0 @@
-description('Test the behavior of multiple base elements.');
-
-var originalBase = document.URL.replace(/[^/]*$/, "");
-
-function clean(url)
-{
- if (url.length < originalBase.length)
- return url;
- if (url.substring(0, originalBase.length) !== originalBase)
- return url;
- return "http://originalbase.com/" + url.substring(originalBase.length);
-}
-
-var anchor = document.createElement('a');
-anchor.href = "file";
-
-document.body.appendChild(anchor);
-
-shouldBe("clean(anchor.href)", "'http://originalbase.com/file'");
-
-var base = document.createElement('base');
-base.href = "http://domain.com/base/";
-
-shouldBe("document.head.appendChild(base), clean(anchor.href)", "'http://domain.com/base/file'");
-shouldBe("base.href = 'http://domain.com/base-changed/', clean(anchor.href)", "'http://domain.com/base-changed/file'");
-shouldBe("document.head.removeChild(base), clean(anchor.href)", "'http://originalbase.com/file'");
-
-base.href = "http://domain.com/base/";
-
-var base2 = document.createElement('base');
-base2.href = "http://domain.com/base2/";
-
-var base3 = document.createElement('base');
-base3.href = "http://domain.com/base3/";
-
-shouldBe("document.head.appendChild(base), document.head.appendChild(base2), clean(anchor.href)", "'http://domain.com/base/file'");
-shouldBe("base.removeAttribute('href'), clean(anchor.href)", "'http://domain.com/base2/file'");
-shouldBe("document.head.appendChild(base3), clean(anchor.href)", "'http://domain.com/base2/file'");
-
-document.head.removeChild(base);
-document.head.removeChild(base2);
-document.head.removeChild(base3);

Powered by Google App Engine
This is Rietveld 408576698