OLD | NEW |
| (Empty) |
1 This tests ensures formatBlock removes a pre when formatting multiple paragraphs
inside the pre. | |
2 | |
3 Formatting all paragraphs by h3 yields: | |
4 | " | |
5 " | |
6 | <h3> | |
7 | "hello" | |
8 | <br> | |
9 | " | |
10 " | |
11 | "world" | |
12 | <br> | |
13 | " | |
14 " | |
15 | "webkit" | |
16 | " | |
17 " | |
18 | |
19 Undo yields: | |
20 | " | |
21 " | |
22 | <pre> | |
23 | "<#selection-anchor>hello | |
24 | |
25 world | |
26 | |
27 webkit<#selection-focus> | |
28 " | |
29 | " | |
30 " | |
31 | |
32 Formatting all but the last paragraph by h3 yields: | |
33 | " | |
34 " | |
35 | <pre> | |
36 | <h3> | |
37 | "<#selection-anchor>hello" | |
38 | " | |
39 " | |
40 | "world" | |
41 | " | |
42 " | |
43 | "<#selection-focus>webkit | |
44 " | |
45 | " | |
46 " | |
47 | |
48 Undo yields: | |
49 | " | |
50 " | |
51 | <pre> | |
52 | "<#selection-anchor>hello | |
53 | |
54 world | |
55 | |
56 <#selection-focus>webkit | |
57 " | |
58 | " | |
59 " | |
60 | |
61 Formatting all but the first paragraph by h3 yields: | |
62 | " | |
63 " | |
64 | <pre> | |
65 | "hello | |
66 " | |
67 | <h3> | |
68 | " | |
69 " | |
70 | "world" | |
71 | " | |
72 " | |
73 | "webkit" | |
74 | <#selection-caret> | |
75 | " | |
76 " | |
OLD | NEW |