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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/spellcheck-async-mutation.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, 3 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 11 matching lines...) Expand all
22 22
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 if (window.testRunner)
33 testRunner.setMockSpellCheckerEnabled(true);
32 34
33 var sourceIds = ['source']; 35 var sourceIds = ['source'];
34 var destElems = ['textarea', 'input', 'contenteditable']; 36 var destElems = ['textarea', 'input', 'contenteditable'];
35 var tweaks = ['delete', 'move', 'mutate']; 37 var tweaks = ['delete', 'move', 'mutate'];
36 38
37 var testData = []; 39 var testData = [];
38 for (var i = 0; i < sourceIds.length; ++i) { 40 for (var i = 0; i < sourceIds.length; ++i) {
39 for (var j = 0; j < destElems.length; ++j) { 41 for (var j = 0; j < destElems.length; ++j) {
40 for (var k = 0; k < tweaks.length; ++k) { 42 for (var k = 0; k < tweaks.length; ++k) {
41 testData.push({ 43 testData.push({
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 return true; 203 return true;
202 } 204 }
203 } 205 }
204 206
205 doTestIfAny(); 207 doTestIfAny();
206 208
207 var successfullyParsed = true; 209 var successfullyParsed = true;
208 </script> 210 </script>
209 </body> 211 </body>
210 </html> 212 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698