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 15 matching lines...) Expand all Loading... |
26 | 26 |
27 </head> | 27 </head> |
28 <body> | 28 <body> |
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 | 35 |
36 if (window.testRunner) | 36 if (window.testRunner) { |
37 testRunner.dumpAsTextWithPixelResults(); | 37 testRunner.dumpAsTextWithPixelResults(); |
| 38 testRunner.setMockSpellCheckerEnabled(true); |
| 39 } |
38 </script> | 40 </script> |
39 | 41 |
40 LTR | 42 LTR |
41 <div id="testLTR" class="testDiv" contenteditable="true">the the adlj adaasj sdk
lj. there there</div> | 43 <div id="testLTR" class="testDiv" contenteditable="true">the the adlj adaasj sdk
lj. there there</div> |
42 | 44 |
43 RTL | 45 RTL |
44 <div id="testRTL" class="testDiv forcertl" contenteditable="true">the the adlj a
daasj sdklj. there there</div> | 46 <div id="testRTL" class="testDiv forcertl" contenteditable="true">the the adlj a
daasj sdklj. there there</div> |
45 | 47 |
46 LTR (text-overflow:ellipses): | 48 LTR (text-overflow:ellipses): |
47 <div id="testLTREllipses" class="testDiv ellipses" contenteditable="true">the th
e adlj adaasj sdklj. there there</div> | 49 <div id="testLTREllipses" class="testDiv ellipses" contenteditable="true">the th
e adlj adaasj sdklj. there there</div> |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 var next = tests.shift(); | 98 var next = tests.shift(); |
97 if (next) | 99 if (next) |
98 return window.setTimeout(next, 0); | 100 return window.setTimeout(next, 0); |
99 | 101 |
100 finishJSTest(); | 102 finishJSTest(); |
101 } | 103 } |
102 done(); | 104 done(); |
103 </script> | 105 </script> |
104 </body> | 106 </body> |
105 </html> | 107 </html> |
OLD | NEW |