tor-browser

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

test_wheel_default_action.html (927B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <title>Test for default action of WheelEvent</title>
      5  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      6  <script src="/tests/SimpleTest/EventUtils.js"></script>
      7  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
      8 </head>
      9 <body>
     10 <p id="display"></p>
     11 <div id="content" style="display: none">
     12 
     13 </div>
     14 <pre id="test">
     15 <script type="application/javascript">
     16 
     17 SimpleTest.waitForExplicitFinish();
     18 SimpleTest.requestFlakyTimeout("untriaged");
     19 SpecialPowers.pushPrefEnv({"set": [
     20    ["mousewheel.system_scroll_override.enabled", false],
     21    ["layout.disable-pixel-alignment", true]
     22 ]}, runTest);
     23 
     24 var subWin = null;
     25 
     26 function runTest() {
     27  subWin = window.open("window_wheel_default_action.html", "_blank",
     28                       "width=500,height=500,scrollbars=yes");
     29 }
     30 
     31 function finish()
     32 {
     33  subWin.close();
     34  SimpleTest.finish();
     35 }
     36 
     37 </script>
     38 </pre>
     39 </body>
     40 </html>