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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/markers.html

Issue 2270293003: Add a switch to TestRunner to enable/disable mock spell checker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use in-class initialization 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 if (window.testRunner)
21 testRunner.setMockSpellCheckerEnabled(true);
20 22
21 function createEditableElement(parent) { 23 function createEditableElement(parent) {
22 var e = document.createElement('div'); 24 var e = document.createElement('div');
23 e.setAttribute("contentEditable", "true"); 25 e.setAttribute("contentEditable", "true");
24 e.className = 'editing'; 26 e.className = 'editing';
25 27
26 parent.appendChild(e); 28 parent.appendChild(e);
27 return e; 29 return e;
28 } 30 }
29 31
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 var next = tests.shift(); 83 var next = tests.shift();
82 if (next) 84 if (next)
83 return window.setTimeout(next, 0); 85 return window.setTimeout(next, 0);
84 86
85 finishJSTest(); 87 finishJSTest();
86 } 88 }
87 done(); 89 done();
88 </script> 90 </script>
89 </body> 91 </body>
90 </html> 92 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698