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

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

Issue 2780363002: Rename subdirectory names in LayoutTests/html/. (Closed)
Patch Set: Created 3 years, 9 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/html/document-metadata/base-multiple.html
diff --git a/third_party/WebKit/LayoutTests/html/document-metadata/base-multiple.html b/third_party/WebKit/LayoutTests/html/document-metadata/base-multiple.html
deleted file mode 100644
index 806fa1e559836265f5b0d7b381c8b1496edb3f8a..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/html/document-metadata/base-multiple.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-</head>
-<body>
-<script>
-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);
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698