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

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

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script type="text/javascript" src="../editing.js"></script> 4 <script type="text/javascript" src="../editing.js"></script>
5 <script type="text/javascript" src="resources/block-cursor-utils.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> 6 <script src="../../resources/js-test.js" type="text/javascript"></script>
7 </head> 7 </head>
8 <body style="font: 20px Ahem"> 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> 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-rtl" style="direction: rtl;" contenteditable="true">ABC</div> 10 <div id="ltrtext-rtl" style="direction: rtl;" contenteditable="true">ABC</div>
11 <div id="rtltext-rtl" style="direction: rtl;" contenteditable="true">&#x05e9;&#x 05d3;&#x05df;</div> 11 <div id="rtltext-rtl" style="direction: rtl;" contenteditable="true">&#x05e9;&#x 05d3;&#x05df;</div>
12 <div id="mixed-rtl" style="direction: rtl;" contenteditable="true">&#x05e9;&#x05 d3;&#x05df;ABC</div> 12 <div id="mixed-rtl" style="direction: rtl;" contenteditable="true">&#x05e9;&#x05 d3;&#x05df;ABC</div>
13 <div id="console"></div> 13 <div id="console"></div>
14 </body> 14 </body>
15 <script> 15 <script>
16 16
17 if (window.testRunner) { 17 if (window.testRunner) {
18 18
19 internals.toggleOverwriteModeEnabled(document); 19 internals.toggleOverwriteModeEnabled(document);
20 20
21 verifyBlockCursorLeftPositionAndWidth("ltrtext-rtl", ["<", "<"]); 21 verifyBlockCursorLeftPositionAndWidth("ltrtext-rtl", ["<", "<"]);
22 verifyBlockCursorLeftPositionAndWidth("rtltext-rtl", [">", ">"]); 22 verifyBlockCursorLeftPositionAndWidth("rtltext-rtl", [">", ">"]);
23 verifyBlockCursorLeftPositionAndWidth("mixed-rtl", [">", ">", ">", "<", "<"] ); 23 verifyBlockCursorLeftPositionAndWidth("mixed-rtl", [">", ">", ">", "<", "<"] );
24 } 24 }
25 </script> 25 </script>
26 </html> 26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698