[Qt][WK1][CSS Regions] New test fast/regions/hover-on-child-parent-different-regions...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 3 Jun 2013 18:33:17 +0000 (18:33 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 3 Jun 2013 18:33:17 +0000 (18:33 +0000)
https://bugs.webkit.org/show_bug.cgi?id=117035

Forced relayout to ensure the hover event has propagated before checking the results.

Patch by Radu Stavila <stavila@adobe.com> on 2013-06-03
Reviewed by Alexandru Chiculita.

* fast/regions/hover-on-child-parent-different-regions.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@151121 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/regions/hover-on-child-parent-different-regions.html

index 9fef34a..ab711bc 100644 (file)
@@ -1,3 +1,14 @@
+2013-06-03  Radu Stavila  <stavila@adobe.com>
+
+        [Qt][WK1][CSS Regions]  New test fast/regions/hover-on-child-parent-different-regions.html fails
+        https://bugs.webkit.org/show_bug.cgi?id=117035
+
+        Forced relayout to ensure the hover event has propagated before checking the results.
+
+        Reviewed by Alexandru Chiculita.
+
+        * fast/regions/hover-on-child-parent-different-regions.html:
+
 2013-06-03  Bem Jones-Bey  <bjonesbe@adobe.com>
 
         ASSERTION FAILED: node->parentNode(), Heap-use-after-free in WebCore::RenderBox::exclusionShapeOutsideInfo
index d815af7..58c1366 100644 (file)
                        eventSender.mouseMoveTo(child.offsetLeft + 50, child.offsetTop + 50);
                        eventSender.mouseDown(0);
 
-                       setTimeout(release, 0);                 
+                       // force a re-layout to ensure the hover events gets propagated before we check the results
+                       var top = document.body.offsetTop;
+
+                       setTimeout(release, 0);
                }
        }