OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 | |
4 <style> | |
5 body { | |
6 font-size: 24px; | |
7 } | |
8 .editing { | |
9 border: 2px solid red; | |
10 padding: 12px; | |
11 } | |
12 p { | |
13 border: 2px solid blue; | |
14 padding: 12px; | |
15 } | |
16 br { | |
17 background-color: green; | |
18 } | |
19 | |
20 </style> | |
21 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script
> | |
22 | |
23 <script> | |
24 | |
25 function editingTest() { | |
26 for (i = 0; i < 6; i++) | |
27 extendSelectionForwardByCharacterCommand(); | |
28 boldCommand(); | |
29 moveSelectionForwardByCharacterCommand(); | |
30 insertParagraphCommand(); | |
31 boldCommand(); | |
32 for (i = 0; i < 3; i++) | |
33 typeCharacterCommand(); | |
34 insertParagraphCommand(); | |
35 insertParagraphCommand(); | |
36 for (i = 0; i < 3; i++) | |
37 typeCharacterCommand(); | |
38 } | |
39 | |
40 </script> | |
41 | |
42 <title>Editing Test</title> | |
43 </head> | |
44 <body contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode:
space; -khtml-line-break: after-white-space;"> | |
45 | |
46 Test inserting paragraphs and managing typing style correctly: Only "line 1" sho
uld be bold. Other lines should be non-bold. Fix for this bug: | |
47 <a href="rdar://problem/3944492"><rdar://problem/3944492></a> after pressi
ng return twice, text is bold when it shouldn't be | |
48 <div style="height: 12px"></div> | |
49 | |
50 <p id="test">line 1</p> | |
51 | |
52 <script> | |
53 runEditingTest(); | |
54 </script> | |
55 | |
56 </body> | |
57 </html> | |
OLD | NEW |