OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../editing.js"></script> | 4 <script src="../editing.js"></script> |
5 <script src="resources/util.js"></script> | 5 <script src="resources/util.js"></script> |
6 <script src="../../fast/js/resources/js-test-pre.js"></script> | 6 <script src="../../resources/js-test.js"></script> |
7 </head> | 7 </head> |
8 <body> | 8 <body> |
9 <pre id="console"></pre> | 9 <pre id="console"></pre> |
10 <div id="container"> | 10 <div id="container"> |
11 <div id="test_editable" contentEditable>zz zz zz. </div> | 11 <div id="test_editable" contentEditable>zz zz zz. </div> |
12 <textarea id="test_textarea">zz zz zz.</textarea> | 12 <textarea id="test_textarea">zz zz zz.</textarea> |
13 <input type="text" id="test_textfield" value="zz zz zz."></input> | 13 <input type="text" id="test_textfield" value="zz zz zz."></input> |
14 </div> | 14 </div> |
15 <script> | 15 <script> |
16 description("Spell checking should be triggered on focus of an editable. " + | 16 description("Spell checking should be triggered on focus of an editable. " + |
(...skipping 20 matching lines...) Expand all Loading... |
37 shouldBe('internals.markerCountForNode(findFirstTextNode(testTextArea), "spellin
g")', '0'); | 37 shouldBe('internals.markerCountForNode(findFirstTextNode(testTextArea), "spellin
g")', '0'); |
38 testTextArea.focus(); | 38 testTextArea.focus(); |
39 shouldBe('internals.markerCountForNode(findFirstTextNode(testTextArea), "spellin
g")', '3'); | 39 shouldBe('internals.markerCountForNode(findFirstTextNode(testTextArea), "spellin
g")', '3'); |
40 shouldBe('internals.markerCountForNode(findFirstTextNode(testTextField), "spelli
ng")', '0'); | 40 shouldBe('internals.markerCountForNode(findFirstTextNode(testTextField), "spelli
ng")', '0'); |
41 testTextField.focus(); | 41 testTextField.focus(); |
42 shouldBe('internals.markerCountForNode(findFirstTextNode(testTextField), "spelli
ng")', '3'); | 42 shouldBe('internals.markerCountForNode(findFirstTextNode(testTextField), "spelli
ng")', '3'); |
43 | 43 |
44 </script> | 44 </script> |
45 </body> | 45 </body> |
46 </html> | 46 </html> |
OLD | NEW |