OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 | 3 |
4 <style> | 4 <style> |
5 .editing { | 5 .editing { |
6 border: 2px solid red; | 6 border: 2px solid red; |
7 padding: 12px; | 7 padding: 12px; |
8 font-size: 24px; | 8 font-size: 24px; |
9 } | 9 } |
10 </style> | 10 </style> |
11 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script
> | 11 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script
> |
12 | 12 |
13 <script> | 13 <script> |
| 14 if (window.testRunner) |
| 15 testRunner.setMockSpellCheckerEnabled(true); |
14 | 16 |
15 function editingTest() { | 17 function editingTest() { |
16 typeCharacterCommand('a'); | 18 typeCharacterCommand('a'); |
17 insertParagraphCommand(); | 19 insertParagraphCommand(); |
18 typeCharacterCommand('z'); | 20 typeCharacterCommand('z'); |
19 typeCharacterCommand('z'); | 21 typeCharacterCommand('z'); |
20 typeCharacterCommand(' '); | 22 typeCharacterCommand(' '); |
21 } | 23 } |
22 | 24 |
23 </script> | 25 </script> |
24 | 26 |
25 <title>Editing Test</title> | 27 <title>Editing Test</title> |
26 </head> | 28 </head> |
27 <body> | 29 <body> |
28 <div>You should see 'a' on the first line below, and 'zz a' on the second line.
'zz' (and only 'zz') should be marked as misspelled.</div> | 30 <div>You should see 'a' on the first line below, and 'zz a' on the second line.
'zz' (and only 'zz') should be marked as misspelled.</div> |
29 <div contenteditable id="root" class="editing"> | 31 <div contenteditable id="root" class="editing"> |
30 <span id="test">a</span> | 32 <span id="test">a</span> |
31 </div> | 33 </div> |
32 | 34 |
33 <script> | 35 <script> |
34 runEditingTest(); | 36 runEditingTest(); |
35 </script> | 37 </script> |
36 | 38 |
37 </body> | 39 </body> |
38 </html> | 40 </html> |
OLD | NEW |