Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(668)

Side by Side Diff: LayoutTests/editing/selection/block-cursor-overtype-mode.html

Issue 14859008: Use a block cursor in overtype mode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/editing/selection/block-cursor-overtype-mode-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script type="text/javascript" src="../editing.js"></script>
5 <script type="text/javascript" src="resources/block-cursor-utils.js"></script>
6 <script src="../../fast/js/resources/js-test-pre.js" type="text/javascript"></sc ript>
7 </head>
8 <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 <div id="ltrtext" style="direction: ltr;" contenteditable="true">ABC</div>
11 <div id="rtltext" style="direction: ltr;" contenteditable="true">&#x05e9;&#x05d3 ;&#x05df;</div>
12 <div id="mixed" style="direction: ltr;" contenteditable="true">&#x05e9;&#x05d3;& #x05df;ABC</div>
13 <div id="console"></div>
14 </body>
15 <script>
16
17 if (window.testRunner) {
18
19 internals.toggleOverwriteModeEnabled(document);
20
21 verifyBlockCursorLeftPositionAndWidth("ltrtext", ["<", "<"]);
22 verifyBlockCursorLeftPositionAndWidth("rtltext", [">", ">"]);
23 verifyBlockCursorLeftPositionAndWidth("mixed", [">", ">", "<", "<", "<"]);
24 }
25 </script>
26 <script src="../../fast/js/resources/js-test-post.js" type="text/javascript"></s cript>
27 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/selection/block-cursor-overtype-mode-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698