summaryrefslogtreecommitdiffstats
path: root/gfx/layers/apz/test/mochitest/test_group_displayport.html
blob: 9ff8c524ad14e70fa45cd3dae60f22017fb20743 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!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
    // trigger the behavior seen in bug 1758760 this value must be greater
    // than zero.
    let displayportExpiryPrefs = [["apz.displayport_expiry_ms", 5]];
    let subtests = [
        { "file": "helper_displayport_expiry.html", "prefs": displayportExpiryPrefs },
    ];

    if (isApzEnabled()) {
        SimpleTest.waitForExplicitFinish();
        window.onload = function() {
            runSubtestsSeriallyInFreshWindows(subtests)
                .then(SimpleTest.finish, SimpleTest.finishWithFailure);
        };
    }
    </script>
</head>
<body>
</body>
</html>