tor-browser

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

test_group_displayport-2.html (1364B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4    <meta charset="utf-8">
      5    <title>Tests for DisplayPorts (involving http server)</title>
      6    <script src="/tests/SimpleTest/SimpleTest.js"></script>
      7    <script type="application/javascript" src="apz_test_native_event_utils.js"></script>
      8    <script type="application/javascript" src="apz_test_utils.js"></script>
      9    <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     10    <script type="application/javascript">
     11 
     12    let subtests = [
     13        { "file": "helper_displayport_suppression_during_page_load.html",
     14          "prefs": [["apz.test.logging_enabled", true],
     15                    ["apz.wr.activate_all_scroll_frames", true],
     16          ]},
     17    ];
     18 
     19    if (getPlatform() != "android") {
     20        // Native wheel is not supported on Android.
     21        subtests.push(
     22            { "file": "helper_displayport_suppression_stop_by_wheel_scroll.html",
     23              "prefs": [["apz.test.logging_enabled", true],
     24                        ["apz.wr.activate_all_scroll_frames", true],
     25          ]},
     26        );
     27    }
     28 
     29    if (isApzEnabled()) {
     30        SimpleTest.waitForExplicitFinish();
     31        window.onload = function() {
     32            runSubtestsSeriallyInFreshWindows(subtests)
     33                .then(SimpleTest.finish, SimpleTest.finishWithFailure);
     34        };
     35    }
     36    </script>
     37 </head>
     38 <body>
     39 </body>
     40 </html>