Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / document-dir-property-expected.txt
1 document.dir should reflect the 'dir' content attribute of the <html> element and should be settable in <head>.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 Read document.dir in head
7 PASS headReadDocumentDir is ""
8
9 Write document.dir in head
10 PASS headWriteDocumentDir is "rtl"
11
12 Read document.dir in body
13 PASS document.dir is "rtl"
14
15 Read document.documentElement.dir in body
16 PASS document.documentElement.dir is "rtl"
17
18 Read document.body.dir in body
19 PASS document.body.dir is ""
20
21 Write document.dir in body
22 PASS document.dir is "ltr"
23
24 Read document.documentElement.dir in body
25 PASS document.documentElement.dir is "ltr"
26
27 Read document.body.dir in body
28 PASS document.body.dir is ""
29
30 Write non-canonical case document.dir in body
31 PASS document.dir = 'RTL' did not throw exception.
32 PASS document.dir is "rtl"
33
34 Write invalid document.dir in body
35 PASS document.dir = 'WRONG' did not throw exception.
36 PASS document.dir is ""
37
38 Write non-canonical case document.body.dir in body
39 PASS document.body.dir = 'RTL' did not throw exception.
40 PASS document.body.dir is "rtl"
41
42 Write invalid document.body.dir in body
43 PASS document.body.dir = 'WRONG' did not throw exception.
44 PASS document.body.dir is ""
45
46 PASS successfullyParsed is true
47
48 TEST COMPLETE
49