Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(642)

Unified Diff: LayoutTests/fast/forms/radio/radio-focus-by-mouse-then-keydown.html

Issue 504343004: Update *-focus-by-mouse-then-keydown.html tests to be repaint tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Pixels! Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698