tor-browser

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

cut-event-manual.html (755B)


      1 <!doctype html>
      2 <title>The cut event</title>
      3 <link rel="help" href="https://w3c.github.io/clipboard-apis/#clipboard-event-cut">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <div id=log></div>
      7 <input value="Select and cut any part of this text to continue" size="100">
      8 <script>
      9 setup({explicit_timeout: true});
     10 async_test(t => {
     11  document.oncut = t.step_func_done(event => {
     12    // Nothing can be asserted about the event target until
     13    // https://github.com/w3c/clipboard-apis/issues/70 is resolved.
     14    // assert_equals(event.target, document.body, 'event.target');
     15    assert_true(event.isTrusted, 'event.isTrusted');
     16    assert_true(event.composed, 'event.composed');
     17  });
     18 });
     19 </script>