Try to reduce the flakiness of 4 :hover tests.
    
Based on what is currently done throughout the LayoutTests/, there
are 2 ways to reduce the flakiness of a :hover test:
* Force layout before and after moving the mouse (especially since
some tests claim that we don't track the mouse before first layout).
* Force a click after moving the mouse.

This change implements the first option as the second one didn't work
for these tests (I remember that it helped in webkit.org/b/81460
though).

Review URL: https://chromiumcodereview.appspot.com/15373002

git-svn-id: svn://svn.chromium.org/blink/trunk@150693 bbb929c8-8fbe-4397-9dbb-9b2b20218538
diff --git a/LayoutTests/TestExpectations b/LayoutTests/TestExpectations
index df47a3c..0064d9a 100644
--- a/LayoutTests/TestExpectations
+++ b/LayoutTests/TestExpectations
@@ -1367,10 +1367,6 @@
 
 webkit.org/b/112193 fast/dom/Window/window-postmessage-clone.html [ Failure Pass ]
 
-webkit.org/b/112219 fast/layers/no-clipping-overflow-hidden-added-after-transform.html [ ImageOnlyFailure Pass ]
-webkit.org/b/112219 fast/layers/no-clipping-overflow-hidden-hardware-acceleration.html [ ImageOnlyFailure Pass ]
-webkit.org/b/112219 fast/layers/no-clipping-overflow-hidden-added-after-transition.html [ ImageOnlyFailure Pass ]
-
 webkit.org/b/112601 http/tests/security/cross-frame-access-port-explicit-domain.html [ Failure Pass ]
 webkit.org/b/112621 [ Win Linux ] fast/forms/datalist/update-range-with-datalist.html [ ImageOnlyFailure Pass ]
 webkit.org/b/112629 http/tests/xmlhttprequest/send-array-buffer.html [ Failure Pass ]
diff --git a/LayoutTests/fast/layers/no-clipping-overflow-hidden-added-after-transform.html b/LayoutTests/fast/layers/no-clipping-overflow-hidden-added-after-transform.html
index 5746cc1..71d3560 100755
--- a/LayoutTests/fast/layers/no-clipping-overflow-hidden-added-after-transform.html
+++ b/LayoutTests/fast/layers/no-clipping-overflow-hidden-added-after-transform.html
@@ -36,6 +36,7 @@
     var transformed = document.getElementById("transformed");
     transformed.parentNode.setAttribute("id", "overflowHidden");
     eventSender.mouseMoveTo(transformed.offsetLeft + 10, transformed.offsetTop + 10);
+    document.body.offsetTop;
 </script>
 </body>
 </html>
diff --git a/LayoutTests/fast/layers/no-clipping-overflow-hidden-added-after-transition.html b/LayoutTests/fast/layers/no-clipping-overflow-hidden-added-after-transition.html
index 86bd3bc6..98a6c94 100755
--- a/LayoutTests/fast/layers/no-clipping-overflow-hidden-added-after-transition.html
+++ b/LayoutTests/fast/layers/no-clipping-overflow-hidden-added-after-transition.html
@@ -41,6 +41,7 @@
     var transformed = document.getElementsByClassName("transformed");
     eventSender.mouseMoveTo(transformed[0].offsetLeft + 10, transformed[0].offsetTop + 10);
     eventSender.mouseMoveTo(transformed[1].offsetLeft + 10, transformed[1].offsetTop + 10);
+    document.body.offsetTop;
 </script>
 </body>
 </html>
diff --git a/LayoutTests/fast/layers/no-clipping-overflow-hidden-hardware-acceleration.html b/LayoutTests/fast/layers/no-clipping-overflow-hidden-hardware-acceleration.html
index 64306de..882e93d 100755
--- a/LayoutTests/fast/layers/no-clipping-overflow-hidden-hardware-acceleration.html
+++ b/LayoutTests/fast/layers/no-clipping-overflow-hidden-hardware-acceleration.html
@@ -35,6 +35,7 @@
 
     var transformed = document.getElementById("transformed");
     eventSender.mouseMoveTo(transformed.offsetLeft + 10, transformed.offsetTop + 10);
+    document.body.offsetTop;
 </script>
 </body>
 </html>
diff --git a/LayoutTests/fast/table/border-collapsing/cached-69296.html b/LayoutTests/fast/table/border-collapsing/cached-69296.html
index 54d0715..dbfc36f 100644
--- a/LayoutTests/fast/table/border-collapsing/cached-69296.html
+++ b/LayoutTests/fast/table/border-collapsing/cached-69296.html
@@ -35,6 +35,7 @@
                     y = rowRect.top;
                     eventSender.mouseMoveTo(x, y + 1);
                     eventSender.mouseMoveTo(x, y - 1);
+                    document.body.offsetTop;
                 }
             }
         </script>