Revision 92c857093784ffe21babd2d64564a9cba491c8b7 authored by Yuki Shiino on 26 December 2018, 13:48:42 UTC, committed by Chromium WPT Sync on 26 December 2018, 13:48:42 UTC
This is mostly a reland of Iee5c1d6917ad7770383e06a425f96000835a663a.

This patch implements setTimeout/setInterval Web APIs with IDL
callback function of type Function (i.e. V8Function in Blink).

Also ensure eager finalization of ScheduledAction in DOMTimer to
prevent a memory leak.

Bug: 866610
Change-Id: I3f460247f27069e4054a984efd3f98a2ce0ceac7
1 parent cd31531
Raw File
cut-event-manual.html
<!DOCTYPE html>
<title>The cut event</title>
<link rel="help" href="https://w3c.github.io/clipboard-apis/#clipboard-event-cut">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<input value="Select and cut any part of this text to continue" size="100">
<script>
setup({explicit_timeout: true});
async_test(t => {
  document.oncut = 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