Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / query-text-alignment-expected.txt
blob2c3e07508756468fd622afe59f9c54a1297a0b60
1 Tests queryCommandState('justifyCenter'), queryCommandState('justifyFull'), queryCommandState('justifyLeft'), and queryCommandState('justifyRight')
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 Caret
7 PASS queryCommand('format') returns "" when selecting no selection on of "hello"
8 PASS queryCommand('format') returns "left" when selecting first position of "hello"
9 PASS queryCommand('format') returns "left" when selecting first position of "<p>hello</p>"
10 PASS queryCommand('format') returns "center" when selecting first position of "<p align="center">hello</p>"
11 PASS queryCommand('format') returns "full" when selecting first position of "<p align="justify">hello</p>"
12 PASS queryCommand('format') returns "left" when selecting first position of "<p align="left">hello</p>"
13 PASS queryCommand('format') returns "right" when selecting first position of "<p align="right">hello</p>"
14 PASS queryCommand('format') returns "center" when selecting first position of "<p style="text-align: center;">hello</p>"
15 PASS queryCommand('format') returns "full" when selecting first position of "<p style="text-align: justify;">hello</p>"
16 PASS queryCommand('format') returns "left" when selecting first position of "<p style="text-align: left;">hello</p>"
17 PASS queryCommand('format') returns "right" when selecting first position of "<p style="text-align: right;">hello</p>"
18 PASS queryCommand('format') returns "full" when selecting first position of "<p align="center" style="text-align: justify;">hello</p>"
19 PASS queryCommand('format') returns "left" when selecting first position of "<p align="right" style="text-align: left;">hello</p>"
20 PASS queryCommand('format') returns "right" when selecting first position of "<p align="center" style="text-align: right;">hello</p>"
21 PASS queryCommand('format') returns "center" when selecting first position of "<p align="left" style="text-align: center;">hello</p>"
22 PASS queryCommand('format') returns "left" when selecting first position of "<p align="right" style="text-align: left;">hello</p>"
23 PASS queryCommand('format') returns "right" when selecting first position of "<p align="center" style="text-align: right;">hello</p>"
24 PASS queryCommand('format') returns "center" when selecting first position of "<p align="left" style="text-align: center;">hello</p>"
25 PASS queryCommand('format') returns "left" when selecting first position of "<h1>hello</h1>"
26 PASS queryCommand('format') returns "center" when selecting first position of "<h1 align="center">hello</h1>"
27 PASS queryCommand('format') returns "full" when selecting first position of "<h1 align="justify">hello</h1>"
28 PASS queryCommand('format') returns "left" when selecting first position of "<h2 align="left">hello</h2>"
29 PASS queryCommand('format') returns "right" when selecting first position of "<h3 align="right">hello</h3>"
30 PASS queryCommand('format') returns "center" when selecting first position of "<h4 align="center">hello</h4>"
31 PASS queryCommand('format') returns "left" when selecting first position of "<h5 align="left">hello</h5>"
32 PASS queryCommand('format') returns "right" when selecting first position of "<h6 align="right">hello</h6>"
33 PASS queryCommand('format') returns "full" when selecting first position of "<div align="justify">hello</div>"
34 PASS queryCommand('format') returns "center" when selecting first position of "<div align="center">hello</div>"
35 PASS queryCommand('format') returns "left" when selecting first position of "<div align="left">hello</div>"
36 PASS queryCommand('format') returns "right" when selecting first position of "<div align="right">hello</div>"
38 Tests for win
39 PASS queryCommand('format') returns "left" when selecting middle of "<p>hello</p><p>world</p>"
40 PASS queryCommand('format') returns "" when selecting middle of "<p align="right">hello</p><p>world</p>"
41 PASS queryCommand('format') returns "left" when selecting middle of "<p>hello</p><p align="left">world</p>"
42 PASS queryCommand('format') returns "" when selecting middle of "<p align="left">hello</p><p align="right">world</p>"
43 PASS queryCommand('format') returns "center" when selecting middle of "<p align="center">hello</p><p align="center">world</p>"
44 PASS queryCommand('format') returns "full" when selecting middle of "<p align="justify">hello</p><p align="justify">world</p>"
45 PASS queryCommand('format') returns "left" when selecting middle of "<p align="left">hello</p><p align="left">world</p>"
46 PASS queryCommand('format') returns "right" when selecting middle of "<p align="right">hello</p><p align="right">world</p>"
47 PASS queryCommand('format') returns "" when selecting middle of "<div align="right">hello<p align="left">world</p></div>"
48 PASS queryCommand('format') returns "" when selecting middle of "<div align="left"><p align="center">world</p>hello</div>"
49 PASS queryCommand('format') returns "left" when selecting middle of "<p align="left">hello</p><p>w</p><p align="left">orld</p>"
50 PASS queryCommand('format') returns "" when selecting middle of "<p align="justify">hello</p><p>w</p><p align="center">orld</p>"
52 Tests for mac
53 PASS queryCommand('format') returns "left" when selecting middle of "<p>hello</p><p>world</p>"
54 PASS queryCommand('format') returns "right" when selecting middle of "<p align="right">hello</p><p>world</p>"
55 PASS queryCommand('format') returns "left" when selecting middle of "<p>hello</p><p align="left">world</p>"
56 PASS queryCommand('format') returns "left" when selecting middle of "<p align="left">hello</p><p align="right">world</p>"
57 PASS queryCommand('format') returns "center" when selecting middle of "<p align="center">hello</p><p align="center">world</p>"
58 PASS queryCommand('format') returns "full" when selecting middle of "<p align="justify">hello</p><p align="justify">world</p>"
59 PASS queryCommand('format') returns "left" when selecting middle of "<p align="left">hello</p><p align="left">world</p>"
60 PASS queryCommand('format') returns "right" when selecting middle of "<p align="right">hello</p><p align="right">world</p>"
61 PASS queryCommand('format') returns "right" when selecting middle of "<div align="right">hello<p align="left">world</p></div>"
62 PASS queryCommand('format') returns "center" when selecting middle of "<div align="left"><p align="center">world</p>hello</div>"
63 PASS queryCommand('format') returns "left" when selecting middle of "<p align="left">hello</p><p>w</p><p align="left">orld</p>"
64 PASS queryCommand('format') returns "full" when selecting middle of "<p align="justify">hello</p><p>w</p><p align="center">orld</p>"
65 PASS successfullyParsed is true
67 TEST COMPLETE