Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / forms / submit / submit-focus-by-mouse-then-keydown.html
index 13eb5d0..91cbcfe 100644 (file)
@@ -1,11 +1,16 @@
 <!DOCTYPE html>
 <body>
 <script src="../resources/common.js"></script>
+<script src="../../repaint/resources/text-based-repaint.js"></script>
 <input type="submit">
 <!-- 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>