Index: third_party/WebKit/LayoutTests/fast/dom/document-dir-property.html |
diff --git a/third_party/WebKit/LayoutTests/fast/dom/document-dir-property.html b/third_party/WebKit/LayoutTests/fast/dom/document-dir-property.html |
index fce0786e48998b2a6584204d2962ef9e66fe7cfa..08b2700b7b3396c32b95a6013cc3ba041aba37e8 100644 |
--- a/third_party/WebKit/LayoutTests/fast/dom/document-dir-property.html |
+++ b/third_party/WebKit/LayoutTests/fast/dom/document-dir-property.html |
@@ -28,6 +28,10 @@ debug("Read document.documentElement.dir in body"); |
shouldBeEqualToString("document.documentElement.dir", "rtl"); |
debug(""); |
+debug("Read document.documentElement.getAttribute('dir') in body"); |
+shouldBeEqualToString("document.documentElement.getAttribute('dir')", "rtl"); |
+debug(""); |
+ |
debug("Read document.body.dir in body"); |
shouldBeEqualToString("document.body.dir", ""); |
debug(""); |
@@ -45,16 +49,28 @@ debug("Read document.body.dir in body"); |
shouldBeEqualToString("document.body.dir", ""); |
debug(""); |
+debug("Read document.documentElement.getAttribute('dir') in body"); |
+shouldBeEqualToString("document.documentElement.getAttribute('dir')", "ltr"); |
+debug(""); |
+ |
debug("Write non-canonical case document.dir in body"); |
shouldNotThrow("document.dir = 'RTL'"); |
shouldBeEqualToString("document.dir", "rtl"); |
debug(""); |
+debug("Read document.documentElement.getAttribute('dir') in body"); |
+shouldBeEqualToString("document.documentElement.getAttribute('dir')", "RTL"); |
+debug(""); |
+ |
debug("Write invalid document.dir in body"); |
shouldNotThrow("document.dir = 'WRONG'"); |
shouldBeEqualToString("document.dir", ""); |
debug(""); |
+debug("Read document.documentElement.getAttribute('dir') in body"); |
+shouldBeEqualToString("document.documentElement.getAttribute('dir')", "WRONG"); |
+debug(""); |
+ |
debug("Write non-canonical case document.body.dir in body"); |
shouldNotThrow("document.body.dir = 'RTL'"); |
shouldBeEqualToString("document.body.dir", "rtl"); |
@@ -64,6 +80,16 @@ debug("Write invalid document.body.dir in body"); |
shouldNotThrow("document.body.dir = 'WRONG'"); |
shouldBeEqualToString("document.body.dir", ""); |
debug(""); |
+ |
+document.dir = null; |
+debug("Read document.dir in body"); |
+shouldBeEqualToString("document.dir", ""); |
+debug(""); |
+ |
+debug("Read document.documentElement.getAttribute('dir') in body"); |
+shouldBeEqualToString("document.documentElement.getAttribute('dir')", "null"); |
+debug(""); |
+ |
</script> |
</body> |
</html> |