author Ryan Hunt <>
Sun, 23 Jul 2017 12:42:26 -0400
changeset 422384 1db44c2e79032184d3fb96d34e84052aa73b603a
permissions -rw-r--r--
Bug 1383365 - Add a test to assert async key scrolling happens. r=botond MozReview-Commit-ID: 13XydDOHXUE

  <meta charset="utf-8">
  <title>Async key scrolling test</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">

    if (isKeyApzEnabled()) {

      // Run the actual test in its own window, because it requires that the
      // root APZC be scrollable. Mochitest pages themselves often run
      // inside an iframe which means we have no control over the root APZC.
      var w = null;
      window.onload = function() {
        pushPrefs([["apz.test.logging_enabled", true],
                   ["", true]]).then(function() {
          w ="helper_key_scroll.html", "_blank");
    } else {
      SimpleTest.ok(true, "Keyboard APZ is disabled");

    function finishTest() {

  <a target="_blank" href="">Async key scrolling test</a>