blob: e4454a20a15fa2ae20d4caf1574f0b97be7dbc45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<!DOCTYPE html>
<title>Window Object 'onmove'</title>
<link rel="author" title="Sonja Laurila" href="mailto:laurila@google.com">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#handler-window-onmove">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script>
promise_test(async t => {
var onMoveCalled = false;
window.onmove = (event) => { onMoveCalled = true; }
window.dispatchEvent(new Event('move'));
assert_true(onMoveCalled, "The onMove handler has been executed.");
}, "Window move event");
</script>
|