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 | 5 |
6 if (window.internals) | |
7 internals.settings.setUnifiedTextCheckerEnabled(true); | |
8 | |
9 var parent = document.createElement("div"); | 6 var parent = document.createElement("div"); |
10 document.body.appendChild(parent); | 7 document.body.appendChild(parent); |
11 var sel = document.getSelection(); | 8 var sel = document.getSelection(); |
12 | 9 |
13 function testSpellCheckingEnabled(target, enabled) | 10 function testSpellCheckingEnabled(target, enabled) |
14 { | 11 { |
15 target.spellcheck = enabled; | 12 target.spellcheck = enabled; |
16 | 13 |
17 if (target.tagName == "SPAN") { | 14 if (target.tagName == "SPAN") { |
18 target.appendChild(document.createTextNode("Hello,")); | 15 target.appendChild(document.createTextNode("Hello,")); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 setTimeout(testFor(currentElement, spellcheckAttributeVariances[iterator
++]), 0); | 80 setTimeout(testFor(currentElement, spellcheckAttributeVariances[iterator
++]), 0); |
84 else { | 81 else { |
85 iterator = 0; | 82 iterator = 0; |
86 currentElement = null; | 83 currentElement = null; |
87 done(); | 84 done(); |
88 } | 85 } |
89 } | 86 } |
90 done(); | 87 done(); |
91 | 88 |
92 var successfullyParsed = true; | 89 var successfullyParsed = true; |
OLD | NEW |