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

Unified Diff: third_party/WebKit/LayoutTests/fast/html/footer-element.html

Issue 2669403002: Move tests for sections elements to html/sections/. (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/html/footer-element.html
diff --git a/third_party/WebKit/LayoutTests/fast/html/footer-element.html b/third_party/WebKit/LayoutTests/fast/html/footer-element.html
deleted file mode 100644
index 8d101b377f6daaf7d74d8ca21723af126e4adda3..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/html/footer-element.html
+++ /dev/null
@@ -1,54 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-</head>
-<body>
-<script>
-description('Various tests for the footer element.');
-
-var testParent = document.createElement('div');
-document.body.appendChild(testParent);
-
-debug('&lt;footer> closes &lt;p>:');
-testParent.innerHTML = '<p>Test that <footer id="footer1">a footer element</footer> closes &lt;p>.</p>';
-var footer1 = document.getElementById('footer1');
-shouldBeFalse('footer1.parentNode.nodeName == "p"');
-
-debug('&lt;p> does not close &lt;footer>:');
-testParent.innerHTML = '<footer>Test that <p id="p1">a p element</p> does not close a footer element.</footer>';
-var p1 = document.getElementById('p1');
-shouldBe('p1.parentNode.nodeName', '"FOOTER"');
-
-debug('&lt;footer> can be nested inside &lt;footer> or &lt;header>:');
-testParent.innerHTML = '<footer id="footer2">Test that <footer id="footer3">a footer element</footer> can be nested inside another footer element.</footer>';
-var footer3 = document.getElementById('footer3');
-shouldBe('footer3.parentNode.id', '"footer2"');
-testParent.innerHTML = '<header id="header1">Test that <footer id="footer5">a footer element</footer> can be nested inside a header element.</header>';
-var footer5 = document.getElementById('footer5');
-shouldBe('footer5.parentNode.id', '"header1"');
-
-debug('Residual style:');
-testParent.innerHTML = '<b><footer id="footer4">This text should be bold.</footer> <span id="span1">This is also bold.</span></b>';
-function getWeight(id) {
- return document.defaultView.getComputedStyle(document.getElementById(id), null).getPropertyValue('font-weight');
-}
-shouldBe('getWeight("footer4")', '"bold"');
-shouldBe('getWeight("span1")', '"bold"');
-document.body.removeChild(testParent);
-
-debug('FormatBlock:');
-var editable = document.createElement('div');
-editable.innerHTML = '[<span id="span2">The text will be a child of &lt;footer>.</span>]';
-document.body.appendChild(editable);
-editable.contentEditable = true;
-var selection = window.getSelection();
-selection.selectAllChildren(editable);
-document.execCommand('FormatBlock', false, 'footer');
-selection.removeAllRanges();
-shouldBe('document.getElementById("span2").parentNode.nodeName', '"FOOTER"');
-document.body.removeChild(editable);
-
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698