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