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

Unified Diff: LayoutTests/fast/forms/button/button-reset-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/button/button-reset-focus-by-mouse-then-keydown.html
diff --git a/LayoutTests/fast/forms/button/button-reset-focus-by-mouse-then-keydown.html b/LayoutTests/fast/forms/button/button-reset-focus-by-mouse-then-keydown.html
index 4f0c7037f39394ef4b90b439db3f5a0a0c861c1f..59063c09cdd594e5bd574e1639c32997f6214a2e 100644
--- a/LayoutTests/fast/forms/button/button-reset-focus-by-mouse-then-keydown.html
+++ b/LayoutTests/fast/forms/button/button-reset-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>
<button type="reset">Reset</button>
<!-- 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('button'));
-eventSender.keyDown('leftShift');
+function repaintTest() {
+ eventSender.keyDown('leftShift');
+}
</script>
</body>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/forms/button/button-reset-focus-by-mouse-then-keydown-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698