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