1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00
elinks/test/ecmascript/assert/event.html

13 lines
370 B
HTML
Raw Normal View History

2024-05-09 09:13:30 -04:00
<script>
var e = new Event('message', { cancelable: true });
console.error('event.html');
console.assert(e.target === null, e.target);
2024-05-09 09:13:30 -04:00
console.assert(e.cancelable, 'cancelable true');
console.assert(!e.defaultPrevented, 'false');
e.preventDefault();
console.assert(e.defaultPrevented, 'true');
console.assert(e.type === 'message', 'message');
console.exit();
2024-05-09 09:13:30 -04:00
</script>