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