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

Unified Diff: LayoutTests/fast/events/resources/focus-anchor-by-mouse.js

Issue 455223002: Make anchors mouse-focusable (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Move m_wasFocusedByMouse into subclasses. Created 6 years, 4 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 | « LayoutTests/fast/events/click-focus-svganchor-no-ring-expected.html ('k') | Source/core/dom/Element.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/events/resources/focus-anchor-by-mouse.js
diff --git a/LayoutTests/fast/events/resources/focus-anchor-by-mouse.js b/LayoutTests/fast/events/resources/focus-anchor-by-mouse.js
new file mode 100644
index 0000000000000000000000000000000000000000..f6dc80f2997d73369a69251a659f6f2f2af020d5
--- /dev/null
+++ b/LayoutTests/fast/events/resources/focus-anchor-by-mouse.js
@@ -0,0 +1,7 @@
+window.onload = function() {
+ if (window.eventSender) {
+ var aElement = document.getElementById('anchor');
+ eventSender.mouseMoveTo(aElement.offsetLeft + 2, aElement.offsetTop + 2);
+ eventSender.mouseDown();
+ }
+};
« no previous file with comments | « LayoutTests/fast/events/click-focus-svganchor-no-ring-expected.html ('k') | Source/core/dom/Element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698