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(); |
+ } |
+}; |