tor-browser

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

minimize-1.html (579B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>Use testdriver to minimize the window</title>
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <script src="/resources/testdriver.js"></script>
      7 <script src="/resources/testdriver-vendor.js"></script>
      8 <!-- This is really setup for the actual test which is test2.html which checks the harness restores the window -->
      9 <script>
     10 promise_test(async () => {
     11  await test_driver.minimize_window()
     12  assert_true(document.hidden);
     13  // And no cleanup
     14 }, "Minimize a window");
     15 </script>