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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/script-tests/spelling-hasspellingmarker.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('This tests if internals.hasSpellingMarker works for differnt type o f elements. ' 1 description('This tests if internals.hasSpellingMarker works for differnt type o f elements. '
2 + 'This test succeds when there are four elements having "zz ". ' 2 + 'This test succeds when there are four elements having "zz ". '
3 + 'However, only the last one should not contatin spelling marker.'); 3 + 'However, only the last one should not contatin spelling marker.');
4 4
5 jsTestIsAsync = true; 5 jsTestIsAsync = true;
6 6
7 if (window.internals)
8 internals.settings.setUnifiedTextCheckerEnabled(true);
9
10 var testRoot = document.createElement("div"); 7 var testRoot = document.createElement("div");
11 document.body.insertBefore(testRoot, document.body.firstChild); 8 document.body.insertBefore(testRoot, document.body.firstChild);
12 9
13 function addContainer(markup) 10 function addContainer(markup)
14 { 11 {
15 var contatiner = document.createElement("div"); 12 var contatiner = document.createElement("div");
16 contatiner.innerHTML = markup; 13 contatiner.innerHTML = markup;
17 testRoot.appendChild(contatiner); 14 testRoot.appendChild(contatiner);
18 15
19 return contatiner; 16 return contatiner;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 return setTimeout(verifySpellingMarkers(nextTestCase), 0); 49 return setTimeout(verifySpellingMarkers(nextTestCase), 0);
53 50
54 if (window.internals) 51 if (window.internals)
55 testRoot.style.display = "none"; 52 testRoot.style.display = "none";
56 53
57 finishJSTest(); 54 finishJSTest();
58 } 55 }
59 done(); 56 done();
60 57
61 var successfullyParsed = true; 58 var successfullyParsed = true;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698