Bug 1457089 - [wdspec] Re-enable webdriver/tests/element_click/bubbling.py r=jgraham
authorHenrik Skupin <mail@hskupin.info>
Thu, 26 Apr 2018 11:42:14 +0200
changeset 472199 9d124f189e612ef45f466456934ccc1b1a4ff824
parent 472198 37a65d39653beaab749b5110c099b840ada555fe
child 472200 54595478df99c30e971c0bd7b60e5d3ebed21941
push id1728
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:12:27 +0000
treeherdermozilla-release@c296fde26f5f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgraham
bugs1457089
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1457089 - [wdspec] Re-enable webdriver/tests/element_click/bubbling.py r=jgraham MozReview-Commit-ID: GWjK8WhZHah
testing/web-platform/meta/webdriver/tests/element_click/bubbling.py.ini
testing/web-platform/tests/webdriver/tests/element_click/bubbling.py
deleted file mode 100644
--- a/testing/web-platform/meta/webdriver/tests/element_click/bubbling.py.ini
+++ /dev/null
@@ -1,3 +0,0 @@
-[bubbling.py]
-  disabled:
-    if not debug and e10s and (os == "linux") and (version == "Ubuntu 16.04") and (processor == "x86") and (bits == 32): wpt-sync Bug 1439945
--- a/testing/web-platform/tests/webdriver/tests/element_click/bubbling.py
+++ b/testing/web-platform/tests/webdriver/tests/element_click/bubbling.py
@@ -1,11 +1,12 @@
 from tests.support.asserts import assert_success
 from tests.support.inline import inline
 
+
 def click(session, element):
     return session.transport.send(
         "POST", "/session/{session_id}/element/{element_id}/click".format(
             session_id=session.session_id,
             element_id=element.id))
 
 
 def test_click_event_bubbles_to_parents(session):
@@ -130,25 +131,28 @@ def test_element_disappears_during_click
         <script>
         let under = document.querySelector("#under");
         let over = document.querySelector("#over");
         let body = document.querySelector("body");
         let log = document.querySelector("#log");
 
         function logEvent({type, target, currentTarget}) {
           log.innerHTML += "<p></p>";
-          log.lastElementChild.textContent = `${type} in ${target.id} (handled by ${currentTarget.id})`;
+          log.lastElementChild.textContent =
+              `${type} in ${target.id} (handled by ${currentTarget.id})`;
         }
 
         for (let ev of ["click", "mousedown", "mouseup"]) {
           under.addEventListener(ev, logEvent);
           over.addEventListener(ev, logEvent);
           body.addEventListener(ev, logEvent);
         }
 
-        over.addEventListener("mousedown", () => over.style.display = "none");
+        over.addEventListener("mousedown", function(mousedownEvent) {
+          over.style.display = "none";
+        });
         </script>
         """)
     over = session.find.css("#over", all=False)
 
     # should not time out
     response = click(session, over)
     assert_success(response)