tor-browser

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

test_group_displayport.html (1521B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4    <meta charset="utf-8">
      5    <title>Tests for DisplayPorts</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    // Set the displayport expiry timeout to a small value, but in order to
     13    // trigger the behavior seen in bug 1758760 this value must be greater
     14    // than zero.
     15    let displayportExpiryPrefs = [["apz.displayport_expiry_ms", 5]];
     16    let subtests = [
     17        { "file": "helper_displayport_expiry.html", "prefs": displayportExpiryPrefs },
     18        { "file": "helper_displayport_estimation.html",
     19          "prefs": [["apz.test.logging_enabled", true],
     20                    ["layout.disable-pixel-alignment", true],
     21                    // To calculate displayport easier.
     22                    ["apz.y_stationary_size_multiplier", 1.0],
     23                    ["apz.danger_zone_y", 0],
     24                    ["apz.enlarge_displayport_when_clipped", false],
     25          ]},
     26    ];
     27 
     28    if (isApzEnabled()) {
     29        SimpleTest.waitForExplicitFinish();
     30        window.onload = function() {
     31            runSubtestsSeriallyInFreshWindows(subtests)
     32                .then(SimpleTest.finish, SimpleTest.finishWithFailure);
     33        };
     34    }
     35    </script>
     36 </head>
     37 <body>
     38 </body>
     39 </html>