OLD | NEW |
| (Empty) |
1 Testcase for bug http://www.webkit.org/b/89649. The test case checks if caret is
drawn properly(especially scrolls properly) inside a editable container having
word-wrap:normal. | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 PASS successfullyParsed is true | |
6 | |
7 TEST COMPLETE | |
8 To manually test, move the caret to the end of the line. | |
9 The content must scroll for the caret to reach the end of the editable text. | |
10 PASS editableContainer.scrollLeft > 0 is true | |
11 | |
12 Final caret rect is calculated by following constraints | |
13 1) ScrollWidth = text content width + caret width | |
14 2) Caret rect is always within container bounding box (thus substracting the scr
oll left) | |
15 PASS startCaretRect.left + editableContainer.scrollWidth - editableContainer.scr
ollLeft - caretWidth is finalCaretRect.right | |
16 PASS successfullyParsed is true | |
17 | |
18 TEST COMPLETE | |
19 | |
OLD | NEW |