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

Side by Side Diff: LayoutTests/editing/selection/caret-alignment-for-vertical-text.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 <style> 4 <style>
5 .editableDiv { 5 .editableDiv {
6 height: 200px; 6 height: 200px;
7 width: 200px; 7 width: 200px;
8 border: 1px solid black; 8 border: 1px solid black;
9 -webkit-writing-mode: vertical-rl; 9 -webkit-writing-mode: vertical-rl;
10 font-family: ahem; 10 font-family: ahem;
11 } 11 }
12 </style> 12 </style>
13 <script src="../../fast/js/resources/js-test-pre.js"></script> 13 <script src="../../resources/js-test.js"></script>
14 <script> 14 <script>
15 function runTest() { 15 function runTest() {
16 description('Testcase for bug <a href="https://bugs.webkit.org/show_bug.cgi? id=102359">102359</a>: Caret is painted horizontally in vertical writing mode wh en there are no visible text.'); 16 description('Testcase for bug <a href="https://bugs.webkit.org/show_bug.cgi? id=102359">102359</a>: Caret is painted horizontally in vertical writing mode wh en there are no visible text.');
17 17
18 /* Caret rect for the empty container. */ 18 /* Caret rect for the empty container. */
19 document.getElementById('emptyDiv').focus(); 19 document.getElementById('emptyDiv').focus();
20 if (window.internals) 20 if (window.internals)
21 emptyDivCaretRect = internals.absoluteCaretBounds(); 21 emptyDivCaretRect = internals.absoluteCaretBounds();
22 22
23 /* Caret rect for am empty line. */ 23 /* Caret rect for am empty line. */
(...skipping 22 matching lines...) Expand all
46 </script> 46 </script>
47 </head> 47 </head>
48 <body onload="runTest();"> 48 <body onload="runTest();">
49 <div style="float: left;" contenteditable="true" class="editableDiv" id="emptyDi v"></div> 49 <div style="float: left;" contenteditable="true" class="editableDiv" id="emptyDi v"></div>
50 <div style="float: left;" contenteditable="true" class="editableDiv" id="emptyLi neDiv"><div><br></div></div> 50 <div style="float: left;" contenteditable="true" class="editableDiv" id="emptyLi neDiv"><div><br></div></div>
51 <div contenteditable="true" class="editableDiv" id="textDiv">this is some vertic al text</div> 51 <div contenteditable="true" class="editableDiv" id="textDiv">this is some vertic al text</div>
52 <div id="description"></div> 52 <div id="description"></div>
53 <div id="console"></div> 53 <div id="console"></div>
54 </body> 54 </body>
55 </html> 55 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698