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

Side by Side Diff: LayoutTests/accessibility/textarea-insertion-point-line-number-expected.txt

Issue 392573002: HTMLTextAreaElement.setSelectionRange should not change focus. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix tests Created 6 years, 5 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 tests that lineNumberForPosition is reported correctly for textarea and con tenteditable elements. 1 This tests that lineNumberForPosition is reported correctly for textarea and con tenteditable elements.
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 5
6 PASS area1.selectionStart = (0); area1.selectionEnd = (0); area1AXUIElement.inse rtionPointLineNumber; is currentLine 6 PASS area1.selectionStart = (0); area1.selectionEnd = (0); area1AXUIElement.inse rtionPointLineNumber; is currentLine
7 PASS area1.selectionStart = (7); area1.selectionEnd = (7); area1AXUIElement.inse rtionPointLineNumber; is currentLine 7 PASS area1.selectionStart = (7); area1.selectionEnd = (7); area1AXUIElement.inse rtionPointLineNumber; is currentLine
8 PASS area1.selectionStart = (14); area1.selectionEnd = (14); area1AXUIElement.in sertionPointLineNumber; is currentLine 8 PASS area1.selectionStart = (14); area1.selectionEnd = (14); area1AXUIElement.in sertionPointLineNumber; is currentLine
9 PASS area2.focus(); area1AXUIElement.insertionPointLineNumber; is -1 9 PASS area2.focus(); area1AXUIElement.insertionPointLineNumber; is -1
10 PASS window.getSelection().setBaseAndExtent(contenteditableLine1, 1, contentedit ableLine1, 1); contenteditableAXUIElement.insertionPointLineNumber; is 0 10 PASS window.getSelection().setBaseAndExtent(contenteditableLine1, 1, contentedit ableLine1, 1); contenteditableAXUIElement.insertionPointLineNumber; is 0
11 PASS contenteditableLine2.selectionStart = 1; contenteditableLine2.selectionEnd = 1;contenteditableAXUIElement.insertionPointLineNumber; is -1 11 PASS contenteditableLine2.focus(); contenteditableLine2.selectionStart = 1; cont enteditableLine2.selectionEnd = 1;contenteditableAXUIElement.insertionPointLineN umber; is -1
12 PASS window.getSelection().setBaseAndExtent(contenteditableLine3, 1, contentedit ableLine3, 1); contenteditableAXUIElement.insertionPointLineNumber; is 2 12 PASS window.getSelection().setBaseAndExtent(contenteditableLine3, 1, contentedit ableLine3, 1); contenteditableAXUIElement.insertionPointLineNumber; is 2
13 PASS textareaAXUIElement.insertionPointLineNumber is 0 13 PASS textareaAXUIElement.insertionPointLineNumber is 0
14 PASS successfullyParsed is true 14 PASS successfullyParsed is true
15 15
16 TEST COMPLETE 16 TEST COMPLETE
17 17
18 Line1 18 Line1
19 19
20 Line3 20 Line3
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698