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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/script-tests/spelling-backspace-between-lines.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('Spelling markers should remain while merging two lines.'); 1 description('Spelling markers should remain while merging two lines.');
2 2
3 jsTestIsAsync = true; 3 jsTestIsAsync = true;
4 4
5 if (window.internals)
6 internals.settings.setUnifiedTextCheckerEnabled(true);
7
8 var testRoot = document.createElement("div"); 5 var testRoot = document.createElement("div");
9 document.body.insertBefore(testRoot, document.body.firstChild); 6 document.body.insertBefore(testRoot, document.body.firstChild);
10 7
11 function setup(targetName) 8 function setup(targetName)
12 { 9 {
13 var div = document.createElement("div"); 10 var div = document.createElement("div");
14 div.id = targetName; 11 div.id = targetName;
15 div.contentEditable = true; 12 div.contentEditable = true;
16 div.innerHTML = "<div>OK</div><div>OK zz OK</div>"; 13 div.innerHTML = "<div>OK</div><div>OK zz OK</div>";
17 testRoot.appendChild(div); 14 testRoot.appendChild(div);
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 return setTimeout(next, 0); 85 return setTimeout(next, 0);
89 86
90 if (window.internals) 87 if (window.internals)
91 testRoot.style.display = "none"; 88 testRoot.style.display = "none";
92 89
93 finishJSTest(); 90 finishJSTest();
94 } 91 }
95 done(); 92 done();
96 93
97 var successfullyParsed = true; 94 var successfullyParsed = true;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698