Chromium Code Reviews| 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 <head><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 <html> element and should be settable in <head>."); |
|
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> |