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

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

Issue 240243004: Update HTMLElement.dir / Document.dir to return only known values (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use fastGetAttribute 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 bf24a9380e9b4bb4016c06a676f5771029bc26c9..fce0786e48998b2a6584204d2962ef9e66fe7cfa 100644
--- a/LayoutTests/fast/dom/document-dir-property.html
+++ b/LayoutTests/fast/dom/document-dir-property.html
@@ -44,6 +44,26 @@ debug("");
debug("Read document.body.dir in body");
shouldBeEqualToString("document.body.dir", "");
debug("");
+
+debug("Write non-canonical case document.dir in body");
+shouldNotThrow("document.dir = 'RTL'");
+shouldBeEqualToString("document.dir", "rtl");
+debug("");
+
+debug("Write invalid document.dir in body");
+shouldNotThrow("document.dir = 'WRONG'");
+shouldBeEqualToString("document.dir", "");
+debug("");
+
+debug("Write non-canonical case document.body.dir in body");
+shouldNotThrow("document.body.dir = 'RTL'");
+shouldBeEqualToString("document.body.dir", "rtl");
+debug("");
+
+debug("Write invalid document.body.dir in body");
+shouldNotThrow("document.body.dir = 'WRONG'");
+shouldBeEqualToString("document.body.dir", "");
+debug("");
</script>
</body>
</html>
« 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