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

Unified Diff: LayoutTests/fast/dom/document-dir-property.html

Issue 235893014: Document.dir should reflect the 'dir' attribute of the root html element (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/dom/document-dir-property-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/document-dir-property.html
diff --git a/LayoutTests/fast/dom/document-dir-property.html b/LayoutTests/fast/dom/document-dir-property.html
index 84944ac0b4f5b87e4f6613715c6c57d7d1a1380a..bf24a9380e9b4bb4016c06a676f5771029bc26c9 100644
--- a/LayoutTests/fast/dom/document-dir-property.html
+++ b/LayoutTests/fast/dom/document-dir-property.html
@@ -1,5 +1,6 @@
<html>
<head>
+<link rel="help" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#dom-document-dir"/>
<script>
var headReadDocumentDir = document.dir;
document.dir = "rtl";
@@ -7,37 +8,41 @@ var headWriteDocumentDir = document.dir;
</script>
</head>
<body>
-<div id="description"></div>
-<div id="console"></div>
<script src="../../resources/js-test.js"></script>
<script>
-description("This tests:<br>"
- + "Bug 9954 REGRESSION: document.dir should return empty string in &lt;head&gt;<br>"
- + "<a href=\"https://bugs.webkit.org/show_bug.cgi?id=9954\">https://bugs.webkit.org/show_bug.cgi?id=9954</a><br>");
+description("document.dir should reflect the 'dir' content attribute of the &lt;html&gt; element and should be settable in &lt;head&gt;.");
Inactive 2014/04/15 16:35:37 I verified that this test passes in Firefox 28 as
debug("Read document.dir in head");
-shouldBe("headReadDocumentDir", "''");
+shouldBeEqualToString("headReadDocumentDir", "");
debug("");
debug("Write document.dir in head");
-shouldBe("headWriteDocumentDir", "''");
+shouldBeEqualToString("headWriteDocumentDir", "rtl");
debug("");
debug("Read document.dir in body");
-shouldBe("document.dir", "''");
+shouldBeEqualToString("document.dir", "rtl");
+debug("");
+
+debug("Read document.documentElement.dir in body");
+shouldBeEqualToString("document.documentElement.dir", "rtl");
debug("");
debug("Read document.body.dir in body");
-shouldBe("document.body.dir", "''");
+shouldBeEqualToString("document.body.dir", "");
debug("");
debug("Write document.dir in body");
document.dir = "ltr";
-shouldBe("document.dir", "'ltr'");
+shouldBeEqualToString("document.dir", "ltr");
+debug("");
+
+debug("Read document.documentElement.dir in body");
+shouldBeEqualToString("document.documentElement.dir", "ltr");
debug("");
debug("Read document.body.dir in body");
-shouldBe("document.body.dir", "'ltr'");
+shouldBeEqualToString("document.body.dir", "");
debug("");
</script>
</body>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/document-dir-property-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698