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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLBaseElement/href-attribute-resolves-with-respect-to-document.html

Issue 2779203002: Move tests in fast/dom/HTML{Base,Head,Meta}Element/ to html/document-metadata/ (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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/HTMLBaseElement/href-attribute-resolves-with-respect-to-document-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/dom/HTMLBaseElement/href-attribute-resolves-with-respect-to-document.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLBaseElement/href-attribute-resolves-with-respect-to-document.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLBaseElement/href-attribute-resolves-with-respect-to-document.html
deleted file mode 100644
index 5739008dc273538074c85c7842ed26d7ed338f43..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLBaseElement/href-attribute-resolves-with-respect-to-document.html
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html>
-<script src="../../../resources/js-test.js"></script>
-<base href="foo/bar/">
-<body></body>
-<script>
-
-if (window.testRunner) {
- // FIXME: setCanOpenWindows needs the test to be async or the Apple port crashes.
- // https://bugs.webkit.org/show_bug.cgi?id=99465
- window.jsTestIsAsync = true;
- testRunner.waitUntilDone();
- testRunner.setCanOpenWindows();
-}
-
-function endsWith(string, substring)
-{
- var length = string.length - substring.length;
- return length >= 0 && string.indexOf(substring, length) === length;
-}
-
-var base = document.querySelector('base');
-shouldBeTrue("endsWith(document.querySelector('base').href, 'foo/bar/')");
-shouldBeFalse("endsWith(document.querySelector('base').href, 'foo/bar/foo/bar/')");
-
-base.href = null;
-shouldBeTrue("endsWith(document.querySelector('base').href, '/null')");
-
-// When a document does not have a URL, base cannot be resolved
-
-// Make sure that we don't use the creator document as the base.
-var documentWithoutAView = document.implementation.createHTMLDocument('');
-base = documentWithoutAView.head.appendChild(documentWithoutAView.createElement('base'));
-base.setAttribute('href', 'foo/bar/');
-shouldBeEqualToString("documentWithoutAView.querySelector('base').href", '');
-base.setAttribute('href', 'http://webkit.org/');
-shouldBeEqualToString("documentWithoutAView.querySelector('base').href", 'http://webkit.org/');
-
-// Make sure that we use the parent document as the base.
-var iframe = document.body.appendChild(document.createElement('iframe'));
-base = iframe.contentDocument.head.appendChild(iframe.contentDocument.createElement('base'));
-base.setAttribute('href', 'foo/bar/');
-shouldBeEqualToString("iframe.contentDocument.querySelector('base').href", '');
-
-// Make sure that we don't use the opener document as the base.
-var newWindow = window.open('about:blank');
-base = newWindow.document.head.appendChild(newWindow.document.createElement('base'));
-base.setAttribute('href', 'foo/bar/');
-shouldBeEqualToString("newWindow.document.querySelector('base').href", '');
-newWindow.close();
-
-</script>
-<script>
-
-finishJSTest();
-
-</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/HTMLBaseElement/href-attribute-resolves-with-respect-to-document-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698