Index: LayoutTests/fast/events/click-focus-keydown-no-ring.html |
diff --git a/LayoutTests/fast/events/click-focus-keydown-no-ring.html b/LayoutTests/fast/events/click-focus-keydown-no-ring.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..623181337a1e721dac4866d3f86d2931c6e752a3 |
--- /dev/null |
+++ b/LayoutTests/fast/events/click-focus-keydown-no-ring.html |
@@ -0,0 +1,23 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<style> |
+a { color: blue; } |
+</style> |
+</head> |
+<body> |
+<p>This test ensures that the default focus ring is not drawn on anchors even after pressing a key while the anchor is focused.</p> |
+<p><a id="anchor" href="#">Anchor without tabindex</a></p> |
+ |
+<script> |
+window.onload = function() { |
+ if (window.eventSender) { |
+ var aElement = document.getElementById('anchor'); |
+ eventSender.mouseMoveTo(aElement.offsetLeft + 2, aElement.offsetTop + 2); |
+ eventSender.mouseDown(); |
+ eventSender.keyDown('escape'); |
+ } |
+}; |
+</script> |
+</body> |
+</html> |