Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/script-tests/spelling-attribute-change.js

Issue 2235643002: Code cleanup related to unified text checker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@EnableUnifiedTextCheckerByDefault
Patch Set: Rebased on removal of grammar-checking code Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698