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> |