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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/markers.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 <style> 4 <style>
5 .editing { 5 .editing {
6 border: 2px solid red; 6 border: 2px solid red;
7 padding: 12px; 7 padding: 12px;
8 font-size: 24px; 8 font-size: 24px;
9 } 9 }
10 </style> 10 </style>
11 <script src="../editing.js" language="JavaScript" type="text/JavaScript" ></scri pt> 11 <script src="../editing.js" language="JavaScript" type="text/JavaScript" ></scri pt>
12 <script src="../../resources/js-test.js"></script> 12 <script src="../../resources/js-test.js"></script>
13 </head> 13 </head>
14 <body> 14 <body>
15 <div id="container"></div> 15 <div id="container"></div>
16 <script> 16 <script>
17 description("Tests spelling and grammar markers for misspellings."); 17 description("Tests spelling and grammar markers for misspellings.");
18 18
19 jsTestIsAsync = true; 19 jsTestIsAsync = true;
20 20
21 if (window.internals)
22 internals.settings.setUnifiedTextCheckerEnabled(true);
23
24 function createEditableElement(parent) { 21 function createEditableElement(parent) {
25 var e = document.createElement('div'); 22 var e = document.createElement('div');
26 e.setAttribute("contentEditable", "true"); 23 e.setAttribute("contentEditable", "true");
27 e.className = 'editing'; 24 e.className = 'editing';
28 25
29 parent.appendChild(e); 26 parent.appendChild(e);
30 return e; 27 return e;
31 } 28 }
32 29
33 function typeText(elem, text) { 30 function typeText(elem, text) {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 var next = tests.shift(); 81 var next = tests.shift();
85 if (next) 82 if (next)
86 return window.setTimeout(next, 0); 83 return window.setTimeout(next, 0);
87 84
88 finishJSTest(); 85 finishJSTest();
89 } 86 }
90 done(); 87 done();
91 </script> 88 </script>
92 </body> 89 </body>
93 </html> 90 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698