OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title> Testcase for bug https://bugs.webkit.org/show_bug.cgi?id=89649 </title> | 4 <title> Testcase for bug https://bugs.webkit.org/show_bug.cgi?id=89649 </title> |
5 <style> | 5 <style> |
6 .editableDiv { | 6 .editableDiv { |
7 overflow:auto; | 7 overflow:auto; |
8 height:50px; | 8 height:50px; |
9 width:500px; | 9 width:500px; |
10 word-wrap:normal; | 10 word-wrap:normal; |
11 font-family: 'Ahem'; | 11 font-family: 'Ahem'; |
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="http://www.webkit.org/b/89649">http:/
/www.webkit.org/b/89649</a>. \ | 17 description('Testcase for bug <a href="http://www.webkit.org/b/89649">http:/
/www.webkit.org/b/89649</a>. \ |
18 The test case checks if caret is drawn properly(especially scrolls properly) ins
ide a editable container having word-wrap:normal.'); | 18 The test case checks if caret is drawn properly(especially scrolls properly) ins
ide a editable container having word-wrap:normal.'); |
19 | 19 |
20 editableContainer = document.getElementById('test'); | 20 editableContainer = document.getElementById('test'); |
21 editableContainer.focus(); | 21 editableContainer.focus(); |
22 if (window.internals) | 22 if (window.internals) |
23 startCaretRect = internals.absoluteCaretBounds(); | 23 startCaretRect = internals.absoluteCaretBounds(); |
24 | 24 |
(...skipping 21 matching lines...) Expand all Loading... |
46 </script> | 46 </script> |
47 </head> | 47 </head> |
48 <body onload="runTest();"> | 48 <body onload="runTest();"> |
49 <div id="test" contenteditable="true" class="editableDiv" > | 49 <div id="test" contenteditable="true" class="editableDiv" > |
50 SOMEFILLERTEXTSOMEFILLERTEXTSOMEFILLERFILLERSFILLERSFILLERSFILLERSFILLERS | 50 SOMEFILLERTEXTSOMEFILLERTEXTSOMEFILLERFILLERSFILLERSFILLERSFILLERSFILLERS |
51 </div> | 51 </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> |
OLD | NEW |