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

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

Powered by Google App Engine
This is Rietveld 408576698