OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
| 4 <script src="../../resources/ahem.js"></script> |
4 <script type="text/javascript" src="../editing.js"></script> | 5 <script type="text/javascript" src="../editing.js"></script> |
5 <script type="text/javascript" src="resources/block-cursor-utils.js"></script> | 6 <script type="text/javascript" src="resources/block-cursor-utils.js"></script> |
6 <script src="../../resources/js-test.js" type="text/javascript"></script> | 7 <script src="../../resources/js-test.js" type="text/javascript"></script> |
7 </head> | 8 </head> |
8 <body style="font: 20px Ahem"> | 9 <body style="font: 20px Ahem"> |
9 <p>This test checks that the cursor covers the next character to be overwritten
in overtype mode instead of being painted as a caret (1px width bar)</p> | 10 <p>This test checks that the cursor covers the next character to be overwritten
in overtype mode instead of being painted as a caret (1px width bar)</p> |
10 <div id="ltrtext-rtl" style="direction: rtl;" contenteditable="true">ABC</div> | 11 <div id="ltrtext-rtl" style="direction: rtl;" contenteditable="true">ABC</div> |
11 <div id="rtltext-rtl" style="direction: rtl;" contenteditable="true">ש&#x
05d3;ן</div> | 12 <div id="rtltext-rtl" style="direction: rtl;" contenteditable="true">ש&#x
05d3;ן</div> |
12 <div id="mixed-rtl" style="direction: rtl;" contenteditable="true">ש
d3;ןABC</div> | 13 <div id="mixed-rtl" style="direction: rtl;" contenteditable="true">ש
d3;ןABC</div> |
13 <div id="console"></div> | 14 <div id="console"></div> |
14 </body> | 15 </body> |
15 <script> | 16 <script> |
16 | 17 |
17 if (window.testRunner) { | 18 if (window.testRunner) { |
18 | 19 |
19 internals.toggleOverwriteModeEnabled(document); | 20 internals.toggleOverwriteModeEnabled(document); |
20 | 21 |
21 verifyBlockCursorLeftPositionAndWidth("ltrtext-rtl", ["<", "<"]); | 22 verifyBlockCursorLeftPositionAndWidth("ltrtext-rtl", ["<", "<"]); |
22 verifyBlockCursorLeftPositionAndWidth("rtltext-rtl", [">", ">"]); | 23 verifyBlockCursorLeftPositionAndWidth("rtltext-rtl", [">", ">"]); |
23 verifyBlockCursorLeftPositionAndWidth("mixed-rtl", [">", ">", ">", "<", "<"]
); | 24 verifyBlockCursorLeftPositionAndWidth("mixed-rtl", [">", ">", ">", "<", "<"]
); |
24 } | 25 } |
25 </script> | 26 </script> |
26 </html> | 27 </html> |
OLD | NEW |