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

Side by Side 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, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <body> 2 <body>
3 <script src="../resources/common.js"></script> 3 <script src="../resources/common.js"></script>
4 <script src="../../repaint/resources/text-based-repaint.js"></script>
4 <input type="radio"> 5 <input type="radio">
5 <!-- A keydown event after mouse-focus should draw a focus ring. --> 6 <!-- A keydown event after mouse-focus should draw a focus ring. -->
6 <script> 7 <script>
8 window.onload = runRepaintTest;
9 window.enablePixelTesting = true;
7 eventSender.mouseMoveTo(800, 600); 10 eventSender.mouseMoveTo(800, 600);
8 clickElement(document.querySelector('input')); 11 clickElement(document.querySelector('input'));
9 eventSender.keyDown('leftShift'); 12 function repaintTest() {
13 eventSender.keyDown('leftShift');
14 }
10 </script> 15 </script>
11 </body> 16 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698