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

Side by Side Diff: LayoutTests/editing/input/editable-container-with-word-wrap-normal-expected.txt

Issue 66113002: Partial revert of r161493. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: merge to ToT 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 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. 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 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 PASS successfullyParsed is true
6
7 TEST COMPLETE
5 To manually test, move the caret to the end of the line. 8 To manually test, move the caret to the end of the line.
6 The content must scroll for the caret to reach the end of the editable text. 9 The content must scroll for the caret to reach the end of the editable text.
7 PASS editableContainer.scrollLeft > 0 is true 10 PASS editableContainer.scrollLeft > 0 is true
8 11
9 Final caret rect is calculated by following constraints 12 Final caret rect is calculated by following constraints
10 1) ScrollWidth = text content width + caret width 13 1) ScrollWidth = text content width + caret width
11 2) Caret rect is always within container bounding box (thus substracting the scr oll left) 14 2) Caret rect is always within container bounding box (thus substracting the scr oll left)
12 PASS startCaretRect.left + editableContainer.scrollWidth - editableContainer.scr ollLeft - caretWidth is finalCaretRect.right 15 PASS startCaretRect.left + editableContainer.scrollWidth - editableContainer.scr ollLeft - caretWidth is finalCaretRect.right
13 PASS successfullyParsed is true 16 PASS successfullyParsed is true
14 17
15 TEST COMPLETE 18 TEST COMPLETE
16 PASS successfullyParsed is true
17
18 TEST COMPLETE
19 19
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698