mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Cargoify servo
This commit is contained in:
parent
db2f642c32
commit
c6ab60dbfc
1761 changed files with 8423 additions and 2294 deletions
18
tests/content/test_Event.html
Normal file
18
tests/content/test_Event.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<html>
|
||||
<head>
|
||||
<script src="harness.js"></script>
|
||||
<script>
|
||||
is_function(Event, "Event");
|
||||
|
||||
let ev = new Event("foopy", {cancelable: true});
|
||||
is_a(ev, Event);
|
||||
|
||||
is(ev.type, 'foopy');
|
||||
is(ev.defaultPrevented, false);
|
||||
ev.preventDefault();
|
||||
is(ev.defaultPrevented, true);
|
||||
|
||||
finish();
|
||||
</script>
|
||||
</head>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue