tor-browser

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

test_group_scrollIntoView.html (1710B)


      1 <!DOCTYPE>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>Tests for scrollIntoView</title>
      6  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      7  <script type="application/javascript" src="apz_test_utils.js"></script>
      8  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
      9  <script type="application/javascript">
     10 
     11 let prefs = [];
     12 
     13 var subtests = [
     14  {"file": "helper_scrollIntoView_in_nested_fixed_elements.html",
     15   "prefs": [...prefs,
     16             ["layout.scroll_fixed_content_into_view_visually", true]]
     17  },
     18  {"file": "helper_scrollIntoView_bug1950744.html",
     19   "prefs": [...prefs,
     20             ["layout.scroll_fixed_content_into_view_visually", false]]
     21  },
     22  {"file": "helper_scrollIntoView_bug1950744.html",
     23   "prefs": [...prefs,
     24             ["layout.scroll_fixed_content_into_view_visually", true]]
     25  },
     26  {"file": "helper_scrollIntoView_bug1950744-2.html",
     27   "prefs": [...prefs,
     28             ["layout.scroll_fixed_content_into_view_visually", false]]
     29  },
     30  {"file": "helper_scrollIntoView_bug1950744-2.html",
     31   "prefs": [...prefs,
     32             ["layout.scroll_fixed_content_into_view_visually", true]]
     33  },
     34  {"file": "helper_scrollIntoView_block_center.html",
     35   "prefs": [...prefs,
     36             ["layout.scroll_fixed_content_into_view_visually", true]]
     37  },
     38  {"file": "helper_scrollIntoView_bug2002407.html",
     39   "prefs": [...prefs,
     40             ["layout.scroll_fixed_content_into_view_visually", true]]
     41  },
     42 ];
     43 
     44 if (isApzEnabled()) {
     45  SimpleTest.waitForExplicitFinish();
     46  window.onload = function() {
     47    runSubtestsSeriallyInFreshWindows(subtests)
     48    .then(SimpleTest.finish, SimpleTest.finishWithFailure);
     49  };
     50 }
     51 
     52  </script>
     53 </head>
     54 <body>
     55 </body>
     56 </html>