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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/sequential-focus-navigation-starting-point.html

Issue 1738603002: Sequential focus navigation staring point: Fix a case where clicked Text node has focusable sibling… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/events/sequential-focus-navigation-starting-point.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/sequential-focus-navigation-starting-point.html b/third_party/WebKit/LayoutTests/fast/events/sequential-focus-navigation-starting-point.html
index a1dfa660433813e9f3cdcd6ae234499d75bbfaba..e65c502a0e2a5de7824fb959cabdc43645243037 100644
--- a/third_party/WebKit/LayoutTests/fast/events/sequential-focus-navigation-starting-point.html
+++ b/third_party/WebKit/LayoutTests/fast/events/sequential-focus-navigation-starting-point.html
@@ -16,11 +16,26 @@ test(function() {
eventSender.mouseDown();
eventSender.keyDown('\t');
assert_equals(document.activeElement.id, 'next');
+ eventSender.mouseUp();
hoverOverElement(container.querySelector('div'));
eventSender.mouseDown();
eventSender.keyDown('\t', ['shiftKey']);
assert_equals(document.activeElement.id, 'prev');
+ eventSender.mouseUp();
+
+ container.innerHTML = '<span style="font-size:60px;"><input id=prev>Text Text<input id=next></span>';
+ hoverOverElement(container.querySelector('span'));
+ eventSender.mouseDown();
+ eventSender.keyDown('\t');
+ assert_equals(document.activeElement.id, 'next');
+ eventSender.mouseUp();
+
+ hoverOverElement(container.querySelector('span'));
+ eventSender.mouseDown();
+ eventSender.keyDown('\t', ['shiftKey']);
+ assert_equals(document.activeElement.id, 'prev');
+ eventSender.mouseUp();
}, 'Mouse press should update sequential focus navigation starting point.');
test(function() {
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698