Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <title>Tests for DisplayPorts</title>
    <script src="/tests/SimpleTest/SimpleTest.js"></script>
    <script type="application/javascript" src="apz_test_native_event_utils.js"></script>
    <script type="application/javascript" src="apz_test_utils.js"></script>
    <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
    <script type="application/javascript">
    // Set the displayport expiry timeout to a small value, but in order to
    // than zero.
    let displayportExpiryPrefs = [["apz.displayport_expiry_ms", 5]];
    let subtests = [
        { "file": "helper_displayport_expiry.html", "prefs": displayportExpiryPrefs },
        { "file": "helper_displayport_estimation.html",
          "prefs": [["apz.test.logging_enabled", true],
                    ["layout.disable-pixel-alignment", true],
                    // To calculate displayport easier.
                    ["apz.y_stationary_size_multiplier", 1.0],
                    ["apz.danger_zone_y", 0],
                    ["apz.enlarge_displayport_when_clipped", false],
          ]},
    ];
    if (isApzEnabled()) {
        SimpleTest.waitForExplicitFinish();
        window.onload = function() {
            runSubtestsSeriallyInFreshWindows(subtests)
                .then(SimpleTest.finish, SimpleTest.finishWithFailure);
        };
    }
    </script>
</head>
<body>
</body>
</html>