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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/inline-spelling-markers-hidpi-composited.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 <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
35 if (window.internals)
36 internals.settings.setUnifiedTextCheckerEnabled(true);
37 </script> 34 </script>
38 35
39 LTR 36 LTR
40 <div id="testLTR" class="testDiv" contenteditable="true">the the adlj adaasj sdk lj. there there</div> 37 <div id="testLTR" class="testDiv" contenteditable="true">the the adlj adaasj sdk lj. there there</div>
41 38
42 RTL 39 RTL
43 <div id="testRTL" class="testDiv forcertl" contenteditable="true">the the adlj a daasj sdklj. there there</div> 40 <div id="testRTL" class="testDiv forcertl" contenteditable="true">the the adlj a daasj sdklj. there there</div>
44 41
45 LTR (text-overflow:ellipses) 42 LTR (text-overflow:ellipses)
46 <div id="testLTREllipses" class="testDiv ellipses" contenteditable="true">the th e adlj adaasj sdklj. there there</div> 43 <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
101 98
102 if (window.testRunner) { 99 if (window.testRunner) {
103 testRunner.dumpAsTextWithPixelResults(); 100 testRunner.dumpAsTextWithPixelResults();
104 testRunner.setBackingScaleFactor(2, function () { 101 testRunner.setBackingScaleFactor(2, function () {
105 done(); 102 done();
106 }); 103 });
107 } 104 }
108 </script> 105 </script>
109 </body> 106 </body>
110 </html> 107 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698