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