From 222d41c92f60d8bf9019f9338c0a7d83eaeb9932 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Tue, 13 Mar 2018 22:38:55 +0100 Subject: [PATCH] Bug 1445478: Make pointerevents/test_bug1414336.html more reliable. r=kats There can be something shuffling the iframe between the mouse event is sent and the mouse event is received which makes us end up targeting the instead of the test target. This can be reproduced with enough persistence either with and without the patches from bug 1439875, at least on a headless build with rr chaos mode. Move it to test_group_pointerevents in the apz tests to run it in a new window and make it a bit more reliable. MozReview-Commit-ID: BS6Es8iEmMY --- dom/events/test/pointerevents/mochitest.ini | 4 -- .../apz/test/mochitest/helper_bug1414336.html | 59 ++++++++----------- gfx/layers/apz/test/mochitest/mochitest.ini | 1 + .../mochitest/test_group_pointerevents.html | 7 ++- 4 files changed, 32 insertions(+), 39 deletions(-) rename dom/events/test/pointerevents/test_bug1414336.html => gfx/layers/apz/test/mochitest/helper_bug1414336.html (57%) diff --git a/dom/events/test/pointerevents/mochitest.ini b/dom/events/test/pointerevents/mochitest.ini index 6d9dc4bff5d9..0cd83a28501f 100644 --- a/dom/events/test/pointerevents/mochitest.ini +++ b/dom/events/test/pointerevents/mochitest.ini @@ -15,10 +15,6 @@ support-files = [test_bug1315862.html] [test_bug1323158.html] [test_bug1403055.html] -[test_bug1414336.html] - support-files = - ../../../../gfx/layers/apz/test/mochitest/apz_test_native_event_utils.js - ../../../../gfx/layers/apz/test/mochitest/apz_test_utils.js [test_bug1420589_1.html] support-files = bug_1420589_iframe1.html diff --git a/dom/events/test/pointerevents/test_bug1414336.html b/gfx/layers/apz/test/mochitest/helper_bug1414336.html similarity index 57% rename from dom/events/test/pointerevents/test_bug1414336.html rename to gfx/layers/apz/test/mochitest/helper_bug1414336.html index 58639abc37b0..ac7be0f16794 100644 --- a/dom/events/test/pointerevents/test_bug1414336.html +++ b/gfx/layers/apz/test/mochitest/helper_bug1414336.html @@ -59,42 +59,33 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1414336 diff --git a/gfx/layers/apz/test/mochitest/mochitest.ini b/gfx/layers/apz/test/mochitest/mochitest.ini index fac0b15e1088..7c4a6e98e3d5 100644 --- a/gfx/layers/apz/test/mochitest/mochitest.ini +++ b/gfx/layers/apz/test/mochitest/mochitest.ini @@ -12,6 +12,7 @@ helper_bug1285070.html helper_bug1299195.html helper_bug1346632.html + helper_bug1414336.html helper_click.html helper_div_pan.html helper_drag_click.html diff --git a/gfx/layers/apz/test/mochitest/test_group_pointerevents.html b/gfx/layers/apz/test/mochitest/test_group_pointerevents.html index fc018b992b2b..2972defb493b 100644 --- a/gfx/layers/apz/test/mochitest/test_group_pointerevents.html +++ b/gfx/layers/apz/test/mochitest/test_group_pointerevents.html @@ -11,9 +11,14 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1285070