https://github.com/web-platform-tests/wpt
Raw File
Tip revision: dfa3cf326b7381ab9eec488911595df9e11deb15 authored by Robert Ma on 16 March 2018, 21:17:56 UTC
No longer allow Chrome stability check to fail
Tip revision: dfa3cf3
copy-event-manual.html
<!DOCTYPE html>
<title>The copy event</title>
<link rel="help" href="https://w3c.github.io/clipboard-apis/#clipboard-event-copy">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<p>Select and copy any part of this text to continue.
<script>
setup({explicit_timeout: true});
async_test(t => {
  document.oncopy = t.step_func_done(event => {
    // Nothing can be asserted about the event target until
    // https://github.com/w3c/clipboard-apis/issues/70 is resolved.
    // assert_equals(event.target, document.body, "event.target");
    assert_true(event.isTrusted, "event.isTrusted");
    assert_true(event.composed, "event.composed");
  });
});
</script>
back to top