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

Unified Diff: LayoutTests/fast/forms/file/input-file-re-render.html

Issue 16951003: Fix broken AttachContext from r152289 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed failing test (/fast/forms/file/input-file-re-render.html) Created 7 years, 6 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/file/input-file-re-render.html
diff --git a/LayoutTests/fast/forms/file/input-file-re-render.html b/LayoutTests/fast/forms/file/input-file-re-render.html
index d11ea8eb26c9304003f9da3d6bc5293c83d3ccba..3330f816e12c2e0d99be9923ced6b62a84426f35 100644
--- a/LayoutTests/fast/forms/file/input-file-re-render.html
+++ b/LayoutTests/fast/forms/file/input-file-re-render.html
@@ -16,6 +16,13 @@ function startTest()
eventSender.mouseMoveTo(10, 10);
eventSender.mouseUp();
+ // Move the mouse away before moving on. This is done because landing the patch for bug 249328
+ // would cause this test to fail. That patch fixes a hover problem which causes this test
+ // to actually perform correctly (after switching back to display: inline-block, the style of
+ // the file control would be 'hovered', since it's under the mouse). However, the 'expected'
+ // PNG files were created when this was not working properly, and the control is in its un-hovered state.
+ eventSender.mouseMoveTo(300, 300);
+
// Delete the renderer.
input.style.display = 'none';
input.offsetWidth; // Force to do layout

Powered by Google App Engine
This is Rietveld 408576698