Index: LayoutTests/fast/forms/radio/radio-focus-by-mouse-then-keydown.html |
diff --git a/LayoutTests/fast/forms/radio/radio-focus-by-mouse-then-keydown.html b/LayoutTests/fast/forms/radio/radio-focus-by-mouse-then-keydown.html |
index cfd1ba2e6a7e5a4b9a53fa716050ca1155e886a2..acf8812534d79c381c897478e00e4c5cb6508765 100644 |
--- a/LayoutTests/fast/forms/radio/radio-focus-by-mouse-then-keydown.html |
+++ b/LayoutTests/fast/forms/radio/radio-focus-by-mouse-then-keydown.html |
@@ -1,11 +1,16 @@ |
<!DOCTYPE html> |
<body> |
<script src="../resources/common.js"></script> |
+<script src="../../repaint/resources/text-based-repaint.js"></script> |
<input type="radio"> |
<!-- A keydown event after mouse-focus should draw a focus ring. --> |
<script> |
+window.onload = runRepaintTest; |
+window.enablePixelTesting = true; |
eventSender.mouseMoveTo(800, 600); |
clickElement(document.querySelector('input')); |
-eventSender.keyDown('leftShift'); |
+function repaintTest() { |
+ eventSender.keyDown('leftShift'); |
+} |
</script> |
</body> |