author Botond Ballo <>
Wed, 28 Mar 2018 14:22:54 -0400
changeset 773960 074ba63d6c4d9a69393cce691988697def556818
parent 765822 3a4d96efd68f90a033516a3d68d30ebee01a5f08
child 774434 7be5b730fc074cfa872a12adaca27b1584f41cea
permissions -rw-r--r--
Bug 1447131 - Mochitest for hit-testing over backface-visibility:hidden element. r=kats MozReview-Commit-ID: EeQlvluPQD1

  <meta charset="utf-8">
  <title>Various hit-testing tests that spawn in new windows</title>
  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  <script type="application/javascript" src="apz_test_utils.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
  <script type="application/javascript">

var prefs = [
  // Turn off displayport expiry so that we don't miss failures where the
  // displayport is set and then expires before we get around to doing the
  // hit-test inside the activated scrollframe.
  ["apz.displayport_expiry_ms", 0],
  // Always layerize the scrollbar track, so as to get consistent results
  // across platforms. Eventually we should probably get rid of this and make
  // the tests more robust in terms of testing all the different cross-platform
  // variations.
  ["layout.scrollbars.always-layerize-track", true],
  // We need this pref to allow the synthetic mouse events to propagate to APZ,
  // and to allow the MozMouseHittest event in particular to be dispatched to
  // APZ as a MouseInput so the hit result is recorded.
  ["", true],
  // Turns on APZTestData logging which we use to obtain the hit test results.
  ["apz.test.logging_enabled", true]

var subtests = [
  {'file': 'helper_hittest_basic.html', 'prefs': prefs},
  {'file': 'helper_hittest_subframe_float.html', 'prefs': prefs},
  {'file': 'helper_hittest_checkerboard.html', 'prefs': prefs},
  {'file': 'helper_hittest_backface_hidden.html', 'prefs': prefs}

if (isApzEnabled()) {
  window.onload = function() {
    .then(SimpleTest.finish, SimpleTest.finish);