tor-browser

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

test_group_bug1534549.html (1477B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4    <meta charset="utf-8">
      5    <title>Tests for bug 1534549</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    var touch_action_prefs = getPrefs("TOUCH_ACTION");
     12 
     13    var subtests = [
     14        // Tests that z-index ordering is respected by hit-test info.
     15        { "file": "helper_touch_action_ordering_zindex.html", "prefs": touch_action_prefs },
     16        // Tests that complex block/inline background ordering is respected by hit-test info.
     17        { "file": "helper_touch_action_ordering_block.html", "prefs": touch_action_prefs },
     18    ];
     19 
     20    if (isApzEnabled()) {
     21        ok(window.TouchEvent, "Check if TouchEvent is supported (it should be, the test harness forces it on everywhere)");
     22        if (getPlatform() == "android") {
     23            // This has a lot of subtests, and Android emulators are slow.
     24            SimpleTest.requestLongerTimeout(2);
     25        }
     26 
     27        SimpleTest.waitForExplicitFinish();
     28        window.onload = function() {
     29            runSubtestsSeriallyInFreshWindows(subtests)
     30                .then(SimpleTest.finish, SimpleTest.finishWithFailure);
     31        };
     32    }
     33    </script>
     34 </head>
     35 <body>
     36 </body>
     37 </html>