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

Side by Side Diff: LayoutTests/editing/selection/shrink-selection-after-shift-pagedown.html

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 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 function runTest() 4 function runTest()
5 { 5 {
6 if (window.testRunner) 6 if (window.testRunner)
7 testRunner.dumpAsText(); 7 testRunner.dumpAsText();
8 8
9 var ta = document.getElementById('ta'); 9 var ta = document.getElementById('ta');
10 ta.focus();
10 ta.setSelectionRange(4, 16); 11 ta.setSelectionRange(4, 16);
11 12
12 var lastSelectedLine; 13 var lastSelectedLine;
13 if (window.eventSender) { 14 if (window.eventSender) {
14 eventSender.keyDown("pageDown",["shiftKey"]); 15 eventSender.keyDown("pageDown",["shiftKey"]);
15 lastSelectedLine = (ta.value).substring(ta.selectionEnd - 4, ta.sele ctionEnd); 16 lastSelectedLine = (ta.value).substring(ta.selectionEnd - 4, ta.sele ctionEnd);
16 eventSender.keyDown("upArrow",["shiftKey"]); 17 eventSender.keyDown("upArrow",["shiftKey"]);
17 } 18 }
18 19
19 var result; 20 var result;
(...skipping 27 matching lines...) Expand all
47 L10 48 L10
48 L11 49 L11
49 L12 50 L12
50 L13 51 L13
51 L14 52 L14
52 L15 53 L15
53 L16 54 L16
54 </textarea> 55 </textarea>
55 <p id="result">TEST HAS NOT RUN</p> 56 <p id="result">TEST HAS NOT RUN</p>
56 </body> 57 </body>
OLDNEW
« no previous file with comments | « LayoutTests/editing/input/reveal-caret-of-multiline-input.html ('k') | LayoutTests/fast/forms/input-appearance-selection.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698