Backed out changeset 9554ac45236f (bug 1528937) for bc failures on helper_fission_tap.html . CLOSED TREE
authorNarcis Beleuzu <nbeleuzu@mozilla.com>
Thu, 04 Jul 2019 01:10:55 +0300
changeset 544015 8ad5fbc5b9358fc84aa43d9a1b19c851056b1f39
parent 544014 fbac4c1039185021f5e403ce9de898db278015ef
child 544016 a2ed47577d891e1c4daf92d461d8af8915c33d7a
child 544133 d927aec5915e828df126b9379d15595072758e6b
push id2131
push userffxbld-merge
push dateMon, 26 Aug 2019 18:30:20 +0000
treeherdermozilla-release@b19ffb3ca153 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1528937
milestone69.0a1
backs out9554ac45236fa9a256249587b238ee2e6a414849
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
Backed out changeset 9554ac45236f (bug 1528937) for bc failures on helper_fission_tap.html . CLOSED TREE
gfx/layers/apz/test/mochitest/browser_test_group_fission.js
gfx/layers/apz/test/mochitest/helper_fission_tap.html
--- a/gfx/layers/apz/test/mochitest/browser_test_group_fission.js
+++ b/gfx/layers/apz/test/mochitest/browser_test_group_fission.js
@@ -6,17 +6,16 @@ add_task(async function test_main() {
 
   var utils = SpecialPowers.getDOMWindowUtils(window);
   var isWebRender = (utils.layerManagerType == "WebRender");
 
   // Each of these URLs will get opened in a new top-level browser window that
   // is fission-enabled.
   var test_urls = [
     httpURL("helper_fission_basic.html"),
-    httpURL("helper_fission_tap.html"),
     // add additional tests here
   ];
   if (isWebRender) {
     test_urls = test_urls.concat([
       httpURL("helper_fission_transforms.html"),
       httpURL("helper_fission_scroll_oopif.html"),
       // add additional WebRender-specific tests here
     ]);
deleted file mode 100644
--- a/gfx/layers/apz/test/mochitest/helper_fission_tap.html
+++ /dev/null
@@ -1,88 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-  <meta charset="utf-8">
-  <title>Test to ensure events get untransformed properly for OOP iframes</title>
-  <script src="/tests/SimpleTest/SimpleTest.js"></script>
-  <script src="/tests/SimpleTest/paint_listener.js"></script>
-  <script src="helper_fission_utils.js"></script>
-  <script src="apz_test_utils.js"></script>
-  <script src="apz_test_native_event_utils.js"></script>
-  <script>
-
-// Copied from helper_fission_transforms.html, except for the
-// synthesis function.
-
-fission_subtest_init();
-
-FissionTestHelper.startTestPromise
-  .then(waitUntilApzStable)
-  .then(loadOOPIFrame("testframe", "helper_fission_empty.html"))
-  .then(waitUntilApzStable)
-  .then(runAsyncContinuation(test))
-  .then(FissionTestHelper.subtestDone, FissionTestHelper.subtestDone);
-
-
-let code_for_oopif_to_run = function() {
-  document.addEventListener("click", function(e) {
-    dump(`OOPIF got click at ${e.clientX},${e.clientY}\n`);
-    let result = { x: e.clientX, y: e.clientY };
-    FissionTestHelper.fireEventInEmbedder("OOPIF:ClickData", result);
-  }, {once: true});
-  dump("OOPIF registered click listener\n");
-  return true;
-};
-
-function failsafe() {
-  // Catch and fail faster on the case where the click ends up not going to
-  // the iframe like it should. Otherwise the test hangs until timeout which
-  // is more painful.
-  document.addEventListener("click", function(e) {
-    dump(`${location.href} got click at ${e.clientX},${e.clientY}\n`);
-    ok(false, "The OOPIF hosting page should not have gotten the click");
-    setTimeout(FissionTestHelper.subtestDone, 0);
-  }, {once: true});
-}
-
-async function* test() {
-  let iframeElement = document.getElementById("testframe");
-
-  let iframeResponse = await FissionTestHelper.sendToOopif(iframeElement, code_for_oopif_to_run.toSource() + "()");
-  dump("OOPIF response: " + JSON.stringify(iframeResponse) + "\n");
-  ok(iframeResponse, "code_for_oopif_to_run successfully installed");
-
-  iframePromise = promiseOneEvent("OOPIF:ClickData", null);
-  synthesizeNativeTap(document.body, 400, 400, function() {
-    dump("Finished synthesizing click, waiting for OOPIF message...\n");
-  });
-  iframeResponse = await iframePromise;
-  dump("OOPIF response: " + JSON.stringify(iframeResponse.data) + "\n");
-
-  let expected_coord = 200 / Math.sqrt(2); // because the iframe is rotated 45 deg
-  ok(Math.abs(iframeResponse.data.x - expected_coord) < 3,
-     `x-coord ${iframeResponse.data.x} landed near expected value ${expected_coord}`);
-  ok(Math.abs(iframeResponse.data.y - expected_coord) < 3,
-     `y-coord ${iframeResponse.data.y} landed near expected value ${expected_coord}`);
-}
-
-  </script>
-  <style>
-    body, html {
-        margin: 0;
-    }
-    div {
-        transform-origin: top left;
-        transform: translateX(400px) scale(2) rotate(45deg);
-        width: 500px;
-    }
-    iframe {
-        width: 400px;
-        height: 300px;
-        border: solid 1px black;
-    }
-  </style>
-</head>
-<body onload="failsafe()">
-<div><iframe id="testframe"></iframe></div>
-</body>
-</html>