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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/spellcheck-async-mutation.html

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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 <script src="../editing.js"></script> 5 <script src="../editing.js"></script>
6 <script src="resources/util.js"></script> 6 <script src="resources/util.js"></script>
7 <style> 7 <style>
8 .editing { 8 .editing {
9 border: 2px solid red; 9 border: 2px solid red;
10 padding: 6px; 10 padding: 6px;
(...skipping 12 matching lines...) Expand all
23 <div id="move-target"></div> 23 <div id="move-target"></div>
24 24
25 <script> 25 <script>
26 description( 26 description(
27 "Test for asynchronous spellchecking in case DOM mutation happens. " + 27 "Test for asynchronous spellchecking in case DOM mutation happens. " +
28 "This test checks crash won't happen if DOM mutations happened." 28 "This test checks crash won't happen if DOM mutations happened."
29 ); 29 );
30 30
31 var jsTestIsAsync = true; 31 var jsTestIsAsync = true;
32 32
33 if (window.internals)
34 internals.settings.setUnifiedTextCheckerEnabled(true);
35
36 var sourceIds = ['source']; 33 var sourceIds = ['source'];
37 var destElems = ['textarea', 'input', 'contenteditable']; 34 var destElems = ['textarea', 'input', 'contenteditable'];
38 var tweaks = ['delete', 'move', 'mutate']; 35 var tweaks = ['delete', 'move', 'mutate'];
39 36
40 var testData = []; 37 var testData = [];
41 for (var i = 0; i < sourceIds.length; ++i) { 38 for (var i = 0; i < sourceIds.length; ++i) {
42 for (var j = 0; j < destElems.length; ++j) { 39 for (var j = 0; j < destElems.length; ++j) {
43 for (var k = 0; k < tweaks.length; ++k) { 40 for (var k = 0; k < tweaks.length; ++k) {
44 testData.push({ 41 testData.push({
45 sourceId: sourceIds[i], 42 sourceId: sourceIds[i],
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 return true; 201 return true;
205 } 202 }
206 } 203 }
207 204
208 doTestIfAny(); 205 doTestIfAny();
209 206
210 var successfullyParsed = true; 207 var successfullyParsed = true;
211 </script> 208 </script>
212 </body> 209 </body>
213 </html> 210 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698