OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../../resources/testharness.js"></script> | 2 <script src="../../resources/testharness.js"></script> |
3 <script src="../../resources/testharnessreport.js"></script> | 3 <script src="../../resources/testharnessreport.js"></script> |
4 <p>Make sure spell checker attempts to spell check uneditable text "Bob".</p> | 4 <p>Make sure spell checker attempts to spell check uneditable text "Bob".</p> |
5 <div id="edit" contenteditable="true"><span contenteditable="false">Bob</span> ;
<span contenteditable="false"></span></div> | 5 <div id="edit" contenteditable="true"><span contenteditable="false">Bob</span> ;
<span contenteditable="false"></span></div> |
6 <div id="log"></div> | 6 <div id="log"></div> |
7 <script> | 7 <script> |
| 8 if (window.testRunner) |
| 9 testRunner.setMockSpellCheckerEnabled(true); |
| 10 |
8 test(function() { | 11 test(function() { |
9 var text = edit.childNodes[1]; | 12 var text = edit.childNodes[1]; |
10 var selection = window.getSelection(); | 13 var selection = window.getSelection(); |
11 selection.collapse(text, text.length); | 14 selection.collapse(text, text.length); |
12 // Trigger spell checking | 15 // Trigger spell checking |
13 selection.modify('move', 'right', 'character'); | 16 selection.modify('move', 'right', 'character'); |
14 }); | 17 }); |
15 </script> | 18 </script> |
OLD | NEW |