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

Side by Side Diff: LayoutTests/editing/selection/caret-in-div-containing-br-in-vertical-mode.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 } 10 }
11 </style> 11 </style>
12 <script src="../../fast/js/resources/js-test-pre.js"></script> 12 <script src="../../resources/js-test.js"></script>
13 <script> 13 <script>
14 function runTest() { 14 function runTest() {
15 description('Testcase for bug <a href="https://bugs.webkit.org/show_bug.cgi? id=103621">103621</a>: Caret is incorrectly painted for a contenteditable &lt;di v&gt; containing a &lt;br&gt; in vertical writing mode.\nFor the test to pass, c arets in both the boxes should be exactly similar.\nTo manually verify the issue , try clicking on the second box. A caret should be visible at the start of that container.'); 15 description('Testcase for bug <a href="https://bugs.webkit.org/show_bug.cgi? id=103621">103621</a>: Caret is incorrectly painted for a contenteditable &lt;di v&gt; containing a &lt;br&gt; in vertical writing mode.\nFor the test to pass, c arets in both the boxes should be exactly similar.\nTo manually verify the issue , try clicking on the second box. A caret should be visible at the start of that container.');
16 16
17 document.getElementById('textDiv').focus(); 17 document.getElementById('textDiv').focus();
18 if (window.internals) 18 if (window.internals)
19 withTextCaretRect = internals.absoluteCaretBounds(); 19 withTextCaretRect = internals.absoluteCaretBounds();
20 20
21 document.getElementById('noTextDiv').focus(); 21 document.getElementById('noTextDiv').focus();
22 if (window.internals) 22 if (window.internals)
(...skipping 12 matching lines...) Expand all
35 } 35 }
36 </script> 36 </script>
37 </head> 37 </head>
38 <body onload="runTest();"> 38 <body onload="runTest();">
39 <div contenteditable="true" style="float: left;" class="editableDiv" id="textDiv "><br>some text</div> 39 <div contenteditable="true" style="float: left;" class="editableDiv" id="textDiv "><br>some text</div>
40 <div contenteditable="true" class="editableDiv" id="noTextDiv"><br></div> 40 <div contenteditable="true" class="editableDiv" id="noTextDiv"><br></div>
41 <div id="description"></div> 41 <div id="description"></div>
42 <div id="console"></div> 42 <div id="console"></div>
43 </body> 43 </body>
44 </html> 44 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698