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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/input/scroll-with-tab-to-input-regression.html

Issue 2894803002: Use current selection when tab navigation. (Closed)
Patch Set: Fix selection direction Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/FrameSelection.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <div style="margin-top:120%"><input id="checkbox" type="checkbox" /></div>
5 <input id="input" value="foo">
6 <script>
7 promise_test(() =>{return new Promise((resolve) => {
8 if (window.eventSender === undefined)
9 return reject('required window.eventSender');
10 checkbox.focus();
11 setTimeout(resolve, 0);
12 }).then(() => {
13 var scrollY = window.scrollY;
14 assert_greater_than(window.scrollY, 0);
15 assert_equals(document.activeElement, checkbox);
16 eventSender.keyDown('Tab');
17 assert_equals(document.activeElement, input);
18 eventSender.keyDown('Tab', ['shiftKey']);
19 assert_equals(document.activeElement, checkbox);
20 eventSender.keyDown('Tab');
21 return new Promise((resolve) => {
22 setTimeout(resolve(scrollY), 0);
23 });
24 }).then((scrollY) => {
25 assert_equals(window.scrollY, scrollY, 'Screen should not scroll');
26 });});
27 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/FrameSelection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698