OLD | NEW |
1 description('Tests if the spellchecker behaves correctly when the spellcheck att
ribute ' | 1 description('Tests if the spellchecker behaves correctly when the spellcheck att
ribute ' |
2 + 'is being changed by the script.'); | 2 + 'is being changed by the script.'); |
3 | 3 |
4 jsTestIsAsync = true; | 4 jsTestIsAsync = true; |
| 5 if (window.testRunner) |
| 6 testRunner.setMockSpellCheckerEnabled(true); |
5 | 7 |
6 var parent = document.createElement("div"); | 8 var parent = document.createElement("div"); |
7 document.body.appendChild(parent); | 9 document.body.appendChild(parent); |
8 var sel = document.getSelection(); | 10 var sel = document.getSelection(); |
9 | 11 |
10 function testSpellCheckingEnabled(target, enabled) | 12 function testSpellCheckingEnabled(target, enabled) |
11 { | 13 { |
12 target.spellcheck = enabled; | 14 target.spellcheck = enabled; |
13 | 15 |
14 if (target.tagName == "SPAN") { | 16 if (target.tagName == "SPAN") { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 setTimeout(testFor(currentElement, spellcheckAttributeVariances[iterator
++]), 0); | 82 setTimeout(testFor(currentElement, spellcheckAttributeVariances[iterator
++]), 0); |
81 else { | 83 else { |
82 iterator = 0; | 84 iterator = 0; |
83 currentElement = null; | 85 currentElement = null; |
84 done(); | 86 done(); |
85 } | 87 } |
86 } | 88 } |
87 done(); | 89 done(); |
88 | 90 |
89 var successfullyParsed = true; | 91 var successfullyParsed = true; |
OLD | NEW |