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

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

Issue 235933008: Move 'dir' attribute from HTMLDocument to Document. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move methods to a better location in Document.cpp 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/dir-non-html-document-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/dir-non-html-document.html
diff --git a/LayoutTests/fast/dom/dir-non-html-document.html b/LayoutTests/fast/dom/dir-non-html-document.html
new file mode 100644
index 0000000000000000000000000000000000000000..191505b48beaefce429d94afbb06c1f557b38b80
--- /dev/null
+++ b/LayoutTests/fast/dom/dir-non-html-document.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link rel="help" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#dom-document-dir"/>
+<script src="../../resources/js-test.js"></script>
+</head>
+<body>
+<script>
+description("Make sure the dir attribute is exposed on non-HTML documents.");
+
+var xmlDocument = document.implementation.createDocument("", "", null);
+shouldBe("xmlDocument.__proto__", "XMLDocument.prototype");
+shouldBe("xmlDocument.__proto__.__proto__", "Document.prototype");
+
+shouldBeEqualToString("xmlDocument.dir", "");
+shouldNotThrow("xmlDocument.dir = 'ltr'");
+shouldBeEqualToString("xmlDocument.dir", "");
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/dir-non-html-document-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698