Bug 1432105 - Disable test_pause_dblclick. r=whimboo, a=test-only
authorMaja Frydrychowicz <mjzffr@gmail.com>
Tue, 20 Mar 2018 16:06:39 -0400
changeset 462993 989d666031dbef2dfdbe575aad0edda22275a095
parent 462992 298636c044705d583f4a85822db5e5f505220e8d
child 462994 4c10eb56d4607cd77b4846c73f00d992627ac0f0
push id1683
push usersfraser@mozilla.com
push dateThu, 26 Apr 2018 16:43:40 +0000
treeherdermozilla-release@5af6cb21869d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswhimboo, test-only
bugs1432105
milestone60.0
Bug 1432105 - Disable test_pause_dblclick. r=whimboo, a=test-only MozReview-Commit-ID: CSe3ABNS7hX
testing/web-platform/meta/MANIFEST.json
testing/web-platform/meta/webdriver/tests/actions/mouse_pause_dblclick.py.ini
testing/web-platform/tests/webdriver/tests/actions/mouse_dblclick.py
testing/web-platform/tests/webdriver/tests/actions/mouse_pause_dblclick.py
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -385572,16 +385572,22 @@
     ]
    ],
    "webdriver/tests/actions/mouse_dblclick.py": [
     [
      "/webdriver/tests/actions/mouse_dblclick.py",
      {}
     ]
    ],
+   "webdriver/tests/actions/mouse_pause_dblclick.py": [
+    [
+     "/webdriver/tests/actions/mouse_pause_dblclick.py",
+     {}
+    ]
+   ],
    "webdriver/tests/actions/pointer_origin.py": [
     [
      "/webdriver/tests/actions/pointer_origin.py",
      {}
     ]
    ],
    "webdriver/tests/actions/sequence.py": [
     [
@@ -593274,17 +593280,21 @@
    "f0ed71cbb6550ef496096541531f3b4fa3f4c6e2",
    "wdspec"
   ],
   "webdriver/tests/actions/mouse.py": [
    "edad7693fcd01b418821942edb870191db64ea41",
    "wdspec"
   ],
   "webdriver/tests/actions/mouse_dblclick.py": [
-   "9ab61ed4fd678c04bdcc929466b4a867e5a2048e",
+   "dd73b09a15b438aaf77cbccdf40678a24bbabd39",
+   "wdspec"
+  ],
+  "webdriver/tests/actions/mouse_pause_dblclick.py": [
+   "d9c173d0c6c4943669dcd6d05472758c7f42b1ed",
    "wdspec"
   ],
   "webdriver/tests/actions/pointer_origin.py": [
    "a9a99d58daec7719ee53ed758f566ccceb582f65",
    "wdspec"
   ],
   "webdriver/tests/actions/sequence.py": [
    "d43caf0f8607a76c3baed7806664b686bde21fda",
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/meta/webdriver/tests/actions/mouse_pause_dblclick.py.ini
@@ -0,0 +1,5 @@
+[mouse_pause_dblclick.py]
+  disabled:
+    if os == "linux": https://bugzilla.mozilla.org/show_bug.cgi?id=1447449
+
+
--- a/testing/web-platform/tests/webdriver/tests/actions/mouse_dblclick.py
+++ b/testing/web-platform/tests/webdriver/tests/actions/mouse_dblclick.py
@@ -1,16 +1,13 @@
 import pytest
 
-from tests.actions.support.mouse import get_inview_center, get_viewport_rect
 from tests.actions.support.refine import get_events, filter_dict
 from tests.support.asserts import assert_move_to_coordinates
 
-_DBLCLICK_INTERVAL = 640
-
 
 @pytest.mark.parametrize("click_pause", [0, 200])
 def test_dblclick_at_coordinates(session, test_actions_page, mouse_chain, click_pause):
     div_point = {
         "x": 82,
         "y": 187,
     }
     mouse_chain \
@@ -28,56 +25,8 @@ def test_dblclick_at_coordinates(session
         {"type": "mousedown", "button": 0},
         {"type": "mouseup", "button": 0},
         {"type": "click", "button": 0},
         {"type": "dblclick", "button": 0},
     ]
     assert len(events) == 8
     filtered_events = [filter_dict(e, expected[0]) for e in events]
     assert expected == filtered_events[1:]
-
-
-def test_dblclick_with_pause_after_second_pointerdown(session, test_actions_page, mouse_chain):
-        outer = session.find.css("#outer", all=False)
-        center = get_inview_center(outer.rect, get_viewport_rect(session))
-        mouse_chain \
-            .pointer_move(int(center["x"]), int(center["y"])) \
-            .click() \
-            .pointer_down() \
-            .pause(_DBLCLICK_INTERVAL + 10) \
-            .pointer_up() \
-            .perform()
-        events = get_events(session)
-        expected = [
-            {"type": "mousedown", "button": 0},
-            {"type": "mouseup", "button": 0},
-            {"type": "click", "button": 0},
-            {"type": "mousedown", "button": 0},
-            {"type": "mouseup", "button": 0},
-            {"type": "click", "button": 0},
-            {"type": "dblclick", "button": 0},
-        ]
-        assert len(events) == 8
-        filtered_events = [filter_dict(e, expected[0]) for e in events]
-        assert expected == filtered_events[1:]
-
-
-def test_no_dblclick(session, test_actions_page, mouse_chain):
-        outer = session.find.css("#outer", all=False)
-        center = get_inview_center(outer.rect, get_viewport_rect(session))
-        mouse_chain \
-            .pointer_move(int(center["x"]), int(center["y"])) \
-            .click() \
-            .pause(_DBLCLICK_INTERVAL + 10) \
-            .click() \
-            .perform()
-        events = get_events(session)
-        expected = [
-            {"type": "mousedown", "button": 0},
-            {"type": "mouseup", "button": 0},
-            {"type": "click", "button": 0},
-            {"type": "mousedown", "button": 0},
-            {"type": "mouseup", "button": 0},
-            {"type": "click", "button": 0},
-        ]
-        assert len(events) == 7
-        filtered_events = [filter_dict(e, expected[0]) for e in events]
-        assert expected == filtered_events[1:]
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/webdriver/tests/actions/mouse_pause_dblclick.py
@@ -0,0 +1,52 @@
+from tests.actions.support.mouse import get_inview_center, get_viewport_rect
+from tests.actions.support.refine import get_events, filter_dict
+
+_DBLCLICK_INTERVAL = 640
+
+
+def test_dblclick_with_pause_after_second_pointerdown(session, test_actions_page, mouse_chain):
+        outer = session.find.css("#outer", all=False)
+        center = get_inview_center(outer.rect, get_viewport_rect(session))
+        mouse_chain \
+            .pointer_move(int(center["x"]), int(center["y"])) \
+            .click() \
+            .pointer_down() \
+            .pause(_DBLCLICK_INTERVAL + 10) \
+            .pointer_up() \
+            .perform()
+        events = get_events(session)
+        expected = [
+            {"type": "mousedown", "button": 0},
+            {"type": "mouseup", "button": 0},
+            {"type": "click", "button": 0},
+            {"type": "mousedown", "button": 0},
+            {"type": "mouseup", "button": 0},
+            {"type": "click", "button": 0},
+            {"type": "dblclick", "button": 0},
+        ]
+        assert len(events) == 8
+        filtered_events = [filter_dict(e, expected[0]) for e in events]
+        assert expected == filtered_events[1:]
+
+
+def test_no_dblclick(session, test_actions_page, mouse_chain):
+        outer = session.find.css("#outer", all=False)
+        center = get_inview_center(outer.rect, get_viewport_rect(session))
+        mouse_chain \
+            .pointer_move(int(center["x"]), int(center["y"])) \
+            .click() \
+            .pause(_DBLCLICK_INTERVAL + 10) \
+            .click() \
+            .perform()
+        events = get_events(session)
+        expected = [
+            {"type": "mousedown", "button": 0},
+            {"type": "mouseup", "button": 0},
+            {"type": "click", "button": 0},
+            {"type": "mousedown", "button": 0},
+            {"type": "mouseup", "button": 0},
+            {"type": "click", "button": 0},
+        ]
+        assert len(events) == 7
+        filtered_events = [filter_dict(e, expected[0]) for e in events]
+        assert expected == filtered_events[1:]