OLD | NEW |
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 Loading... |
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 Loading... |
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> |
OLD | NEW |