Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / dir-non-html-document.html
blob191505b48beaefce429d94afbb06c1f557b38b80
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <link rel="help" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#dom-document-dir"/>
5 <script src="../../resources/js-test.js"></script>
6 </head>
7 <body>
8 <script>
9 description("Make sure the dir attribute is exposed on non-HTML documents.");
11 var xmlDocument = document.implementation.createDocument("", "", null);
12 shouldBe("xmlDocument.__proto__", "XMLDocument.prototype");
13 shouldBe("xmlDocument.__proto__.__proto__", "Document.prototype");
15 shouldBeEqualToString("xmlDocument.dir", "");
16 shouldNotThrow("xmlDocument.dir = 'ltr'");
17 shouldBeEqualToString("xmlDocument.dir", "");
18 </script>
19 </body>
20 </html>