tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_group_zoomToFocusedInput.html (2796B)


      1 <!DOCTYPE>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>Various zoomToFocusedInput tests</title>
      6  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      7  <script type="application/javascript" src="apz_test_utils.js"></script>
      8  <script type="application/javascript" src="apz_test_native_event_utils.js"></script>
      9  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     10  <script type="application/javascript">
     11 
     12 let prefs = [
     13  ["apz.zoom_animation_duration_ms", 1],
     14  ["dom.meta-viewport.enabled", true],
     15  ["formhelper.autozoom", true]
     16 ];
     17 
     18 var subtests = [
     19  {"file": "helper_zoomToFocusedInput_scroll.html", prefs},
     20  {"file": "helper_zoomToFocusedInput_multiline.html", prefs},
     21  {"file": "helper_zoomToFocusedInput_iframe.html", prefs},
     22  {"file": "helper_zoomToFocusedInput_iframe.html?cross-origin", prefs},
     23  {"file": "helper_zoomToFocusedInput_iframe-2.html",
     24   "prefs": [...prefs,
     25             ["layout.disable-pixel-alignment", true]]
     26  },
     27  {"file": "helper_zoomToFocusedInput_fixed_bug1673511.html", prefs},
     28  {"file": "helper_zoomToFocusedInput_nozoom_bug1738696.html", prefs},
     29  {"file": "helper_zoomToFocusedInput_nested_position_fixed.html", prefs},
     30  {"file": "helper_zoomToFocusedInput_zoom_in_position_fixed.html", prefs},
     31  {"file": "helper_zoomToFocusedInput_scroll_visually_bug1943865.html",
     32   "prefs": [...prefs,
     33             ["layout.scroll_fixed_content_into_view_visually", true]]
     34  },
     35  {"file": "helper_zoomToFocusedInput_scroll_visually_bug1947470.html",
     36   "prefs": [...prefs,
     37             ["layout.scroll_fixed_content_into_view_visually", true]]
     38  },
     39  {"file": "helper_zoomToFocusedInput_content_visibility_auto.html", prefs},
     40  {"file": "helper_zoomToFocusedInput_to_cursor.html", prefs},
     41  {"file": "helper_zoomToFocusedInput_for_position_fixed.html",
     42   "prefs": [...prefs,
     43     ["layout.scroll_fixed_content_into_view_visually", true]]},
     44 ];
     45 
     46 // These tests rely on mobile viewport sizing, so only run them on
     47 // mobile for now. In the future we can consider running them on
     48 // on desktop, but only in configurations with overlay scrollbars
     49 // (see bug 1608506).
     50 let platform = getPlatform();
     51 if (platform == "android") {
     52  subtests.push(
     53    {"file": "helper_zoomToFocusedInput_nozoom.html", prefs}
     54  );
     55  subtests.push(
     56    {"file": "helper_zoomToFocusedInput_zoom.html", prefs}
     57  );
     58  subtests.push(
     59    {"file": "helper_zoomToFocusedInput_touch-action.html", prefs}
     60  );
     61  subtests.push(
     62    {"file": "helper_zoomToFocusedInput_dynamic_toolbar_bug1828235.html", prefs}
     63  );
     64 }
     65 
     66 if (isApzEnabled()) {
     67  SimpleTest.waitForExplicitFinish();
     68  window.onload = function() {
     69    runSubtestsSeriallyInFreshWindows(subtests)
     70    .then(SimpleTest.finish, SimpleTest.finishWithFailure);
     71  };
     72 }
     73 
     74  </script>
     75 </head>
     76 <body>
     77 </body>
     78 </html>