| Index: LayoutTests/editing/selection/block-cursor-overtype-mode.html
|
| diff --git a/LayoutTests/editing/selection/block-cursor-overtype-mode.html b/LayoutTests/editing/selection/block-cursor-overtype-mode.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..99f0f5a9ce078758b0477b1880befdd22652c35a
|
| --- /dev/null
|
| +++ b/LayoutTests/editing/selection/block-cursor-overtype-mode.html
|
| @@ -0,0 +1,27 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<script type="text/javascript" src="../editing.js"></script>
|
| +<script type="text/javascript" src="resources/block-cursor-utils.js"></script>
|
| +<script src="../../fast/js/resources/js-test-pre.js" type="text/javascript"></script>
|
| +</head>
|
| +<body style="font: 20px Ahem">
|
| +<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>
|
| +<div id="ltrtext" style="direction: ltr;" contenteditable="true">ABC</div>
|
| +<div id="rtltext" style="direction: ltr;" contenteditable="true">שדן</div>
|
| +<div id="mixed" style="direction: ltr;" contenteditable="true">שדןABC</div>
|
| +<div id="console"></div>
|
| +</body>
|
| +<script>
|
| +
|
| +if (window.testRunner) {
|
| +
|
| + internals.toggleOverwriteModeEnabled(document);
|
| +
|
| + verifyBlockCursorLeftPositionAndWidth("ltrtext", ["<", "<"]);
|
| + verifyBlockCursorLeftPositionAndWidth("rtltext", [">", ">"]);
|
| + verifyBlockCursorLeftPositionAndWidth("mixed", [">", ">", "<", "<", "<"]);
|
| +}
|
| +</script>
|
| +<script src="../../fast/js/resources/js-test-post.js" type="text/javascript"></script>
|
| +</html>
|
|
|