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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/inline-spelling-markers-hidpi.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 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 <script src="../../editing/editing.js"></script> 4 <script src="../../editing/editing.js"></script>
5 <style> 5 <style>
6 body { overflow:hidden; } 6 body { overflow:hidden; }
7 7
8 .testDiv { 8 .testDiv {
9 width: 200px; 9 width: 200px;
10 height: 20px; 10 height: 20px;
(...skipping 14 matching lines...) Expand all
25 </style> 25 </style>
26 </head> 26 </head>
27 <body> 27 <body>
28 28
29 <script> 29 <script>
30 description("This tests the correct placement of inline spelling and grammar " 30 description("This tests the correct placement of inline spelling and grammar "
31 + "markers in text. Spelling markers should line up exactly under misspelled " 31 + "markers in text. Spelling markers should line up exactly under misspelled "
32 + "words in all cases."); 32 + "words in all cases.");
33 33
34 jsTestIsAsync = true; 34 jsTestIsAsync = true;
35 if (window.testRunner)
36 testRunner.setMockSpellCheckerEnabled(true);
35 </script> 37 </script>
36 38
37 LTR 39 LTR
38 <div id="testLTR" class="testDiv" contenteditable="true">the the adlj adaasj sdk lj. there there</div> 40 <div id="testLTR" class="testDiv" contenteditable="true">the the adlj adaasj sdk lj. there there</div>
39 41
40 RTL 42 RTL
41 <div id="testRTL" class="testDiv forcertl" contenteditable="true">the the adlj a daasj sdklj. there there</div> 43 <div id="testRTL" class="testDiv forcertl" contenteditable="true">the the adlj a daasj sdklj. there there</div>
42 44
43 LTR (text-overflow:ellipses) 45 LTR (text-overflow:ellipses)
44 <div id="testLTREllipses" class="testDiv ellipses" contenteditable="true">the th e adlj adaasj sdklj. there there</div> 46 <div id="testLTREllipses" class="testDiv ellipses" contenteditable="true">the th e adlj adaasj sdklj. there there</div>
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 101
100 if (window.testRunner) { 102 if (window.testRunner) {
101 testRunner.dumpAsTextWithPixelResults(); 103 testRunner.dumpAsTextWithPixelResults();
102 testRunner.setBackingScaleFactor(2, function () { 104 testRunner.setBackingScaleFactor(2, function () {
103 done(); 105 done();
104 }); 106 });
105 } 107 }
106 </script> 108 </script>
107 </body> 109 </body>
108 </html> 110 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698