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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/selection-functions-expected.txt

Issue 2706033004: Don't throw when getting selection(Direction|Start|End) on input (Closed)
Patch Set: Refine test Created 3 years, 10 months 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
OLDNEW
1 This test checks if setSelectionRange(), selectionStart, and selectionEnd on a t extarea and input work as expected. This includes checking edge cases such as ou t-of-bound values. 1 This test checks if setSelectionRange(), selectionStart, and selectionEnd on a t extarea and input work as expected. This includes checking edge cases such as ou t-of-bound values.
2 2
3 If this test passed you'll see a bunch of correct selection ranges below. Check the expected file for the correct ranges. 3 If this test passed you'll see a bunch of correct selection ranges below. Check the expected file for the correct ranges.
4 4
5 5
6 ===textarea=== 6 ===textarea===
7 setSelectionRange(): 7 setSelectionRange():
8 3, 7 8 3, 7
9 5, 5 9 5, 5
10 42, 48 10 42, 48
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 3, 5 45 3, 5
46 2, 2 46 2, 2
47 2, 48 47 2, 48
48 2, 48 48 2, 48
49 7, 7 49 7, 7
50 50
51 selectionStart and selectionEnd in focus handler don't return wrong values 0,0: 51 selectionStart and selectionEnd in focus handler don't return wrong values 0,0:
52 7, 7 52 7, 7
53 53
54 ===button=== 54 ===button===
55 button.selectionStart threw exception 55 button.selectionStart did not throw exception
56 button.selectionStart = 0 threw exception 56 button.selectionStart = 0 threw exception
57 button.selectionEnd threw exception 57 button.selectionEnd did not throw exception
58 button.selectionEnd = 0 threw exception 58 button.selectionEnd = 0 threw exception
59 button.selectionDirection did not throw exception
60 button.selectionDirection = 'none' threw exception
59 button.setSelectionRange defined 61 button.setSelectionRange defined
60 button.setSelectionRange(0,0) threw exception 62 button.setSelectionRange(0,0) threw exception
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698