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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/script-tests/spelling-attribute-at-child.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 child has own ' 1 description('Tests if the spellchecker behaves correctly when child has own '
2 + 'spellcheck attribute.'); 2 + 'spellcheck attribute.');
3 3
4 jsTestIsAsync = true; 4 jsTestIsAsync = true;
5 5
6 if (window.internals)
7 internals.settings.setUnifiedTextCheckerEnabled(true);
8
9 var root = document.createElement("div"); 6 var root = document.createElement("div");
10 document.body.appendChild(root); 7 document.body.appendChild(root);
11 8
12 function verifyChildSpellingMarker(element) 9 function verifyChildSpellingMarker(element)
13 { 10 {
14 var testElement = document.createElement("div"); 11 var testElement = document.createElement("div");
15 testElement.innerHTML = element.markup; 12 testElement.innerHTML = element.markup;
16 root.appendChild(testElement); 13 root.appendChild(testElement);
17 14
18 var childText = testElement.firstChild.childNodes[1].firstChild; 15 var childText = testElement.firstChild.childNodes[1].firstChild;
(...skipping 29 matching lines...) Expand all
48 { 45 {
49 var nextTestCase = testCases.shift(); 46 var nextTestCase = testCases.shift();
50 if (nextTestCase) 47 if (nextTestCase)
51 return setTimeout(verifyChildSpellingMarker(nextTestCase), 0); 48 return setTimeout(verifyChildSpellingMarker(nextTestCase), 0);
52 49
53 finishJSTest(); 50 finishJSTest();
54 } 51 }
55 done(); 52 done();
56 53
57 var successfullyParsed = true; 54 var successfullyParsed = true;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698