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

Side by Side Diff: LayoutTests/editing/selection/caret-in-div-containing-empty-block.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 #textDiv, #horizontalDiv, #verticalDiv{ 5 #textDiv, #horizontalDiv, #verticalDiv{
6 height: 200px; 6 height: 200px;
7 width: 200px; 7 width: 200px;
8 border: 1px solid black; 8 border: 1px solid black;
9 } 9 }
10 #verticalDiv { 10 #verticalDiv {
11 -webkit-writing-mode: vertical-rl; 11 -webkit-writing-mode: vertical-rl;
12 } 12 }
13 </style> 13 </style>
14 <script src="../../fast/js/resources/js-test-pre.js"></script> 14 <script src="../../resources/js-test.js"></script>
15 <script> 15 <script>
16 function runTest() { 16 function runTest() {
17 description('Testcase for bug <a href="https://bugs.webkit.org/show_bug.cgi? id=108053">108053</a>: Caret is not displayed when trying to focus inside a cont enteditable element containing an empty block.\nTo manually verify the issue, cl ick inside the three boxes. A caret should be displayed for each of them.'); 17 description('Testcase for bug <a href="https://bugs.webkit.org/show_bug.cgi? id=108053">108053</a>: Caret is not displayed when trying to focus inside a cont enteditable element containing an empty block.\nTo manually verify the issue, cl ick inside the three boxes. A caret should be displayed for each of them.');
18 18
19 if (window.internals) { 19 if (window.internals) {
20 var textDiv = document.getElementById('textDiv'); 20 var textDiv = document.getElementById('textDiv');
21 textDiv.focus(); 21 textDiv.focus();
22 textCaretRect = internals.absoluteCaretBounds(document); 22 textCaretRect = internals.absoluteCaretBounds(document);
23 23
24 var horizontalDiv = document.getElementById('horizontalDiv'); 24 var horizontalDiv = document.getElementById('horizontalDiv');
(...skipping 21 matching lines...) Expand all
46 </script> 46 </script>
47 </head> 47 </head>
48 <body onload="runTest();"> 48 <body onload="runTest();">
49 <div id="textDiv" contenteditable="true" style="float: left;">Some text.<p></p>< /div> 49 <div id="textDiv" contenteditable="true" style="float: left;">Some text.<p></p>< /div>
50 <div id="horizontalDiv" contenteditable="true" style="float: left;"><p></p></div > 50 <div id="horizontalDiv" contenteditable="true" style="float: left;"><p></p></div >
51 <div id="verticalDiv" contenteditable="true"><p></p></div> 51 <div id="verticalDiv" contenteditable="true"><p></p></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