tor-browser

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

update-callback-timeout.html (1004B)


      1 <!DOCTYPE html>
      2 <html>
      3  <title>View transitions: Transition has implementation-defined timeout.</title>
      4  <link rel="author" title="Tim Nguyen" href="https://github.com/nt1m">
      5  <link rel="help" href="https://drafts.csswg.org/css-view-transitions-1/">
      6  <meta name="timeout" content="long">
      7  <script src="/resources/testharness.js"></script>
      8  <script src="/resources/testharnessreport.js"></script>
      9  <script>
     10    promise_test(async t => {
     11      assert_implements(document.startViewTransition, "Missing document.startViewTransition");
     12      const transition = document.startViewTransition(() => {
     13        return new Promise(() => {});
     14      });
     15      transition.updateCallbackDone.then(() => {
     16        assert_unreached();
     17      });
     18      transition.finished.then(() => {
     19        assert_unreached();
     20      });
     21      await promise_rejects_dom(t, "TimeoutError", transition.ready);
     22    }, "View transition should have an implementation-defined timeout on the update callback");
     23 </script>
     24 </body>
     25 </html>