Skip to content

Commit a735993

Browse files
authored
feat: add support for EventTarget (#1145)
1 parent 0214ae7 commit a735993

9 files changed

+109
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"Once listener should be invoked only once": {
3+
"status": "PASS"
4+
},
5+
"Once listener should be invoked only once even if the event is nested": {
6+
"status": "PASS"
7+
},
8+
"Once listener should be added / removed like normal listeners": {
9+
"status": "PASS"
10+
},
11+
"Multiple once listeners should be invoked even if the stopImmediatePropagation is set": {
12+
"status": "PASS"
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"Supports passive option on addEventListener only": {
3+
"status": "PASS"
4+
},
5+
"preventDefault should be ignored if-and-only-if the passive option is true": {
6+
"status": "PASS"
7+
},
8+
"returnValue should be ignored if-and-only-if the passive option is true": {
9+
"status": "PASS"
10+
},
11+
"passive behavior of one listener should be unaffected by the presence of other listeners": {
12+
"status": "PASS"
13+
},
14+
"Equivalence of option values": {
15+
"status": "PASS"
16+
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"Event-constructors": {
3+
"status": "PASS"
4+
},
5+
"Event-constructors 1": {
6+
"status": "PASS"
7+
},
8+
"Event-constructors 2": {
9+
"status": "PASS"
10+
},
11+
"Event-constructors 3": {
12+
"status": "PASS"
13+
},
14+
"Event-constructors 4": {
15+
"status": "PASS"
16+
},
17+
"Event-constructors 5": {
18+
"status": "PASS"
19+
},
20+
"Event-constructors 6": {
21+
"status": "PASS"
22+
},
23+
"Event-constructors 7": {
24+
"status": "PASS"
25+
},
26+
"Event-constructors 8": {
27+
"status": "PASS"
28+
},
29+
"Event-constructors 9": {
30+
"status": "PASS"
31+
},
32+
"Event-constructors 10": {
33+
"status": "PASS"
34+
},
35+
"Event-constructors 11": {
36+
"status": "PASS"
37+
},
38+
"Event-constructors 12": {
39+
"status": "PASS"
40+
},
41+
"Event-constructors 13": {
42+
"status": "PASS"
43+
}
44+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"Removing an event listener without explicit capture arg should succeed": {
3+
"status": "PASS"
4+
}
5+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"Adding a null event listener should succeed": {
3+
"status": "PASS"
4+
}
5+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"A constructed EventTarget can be used as expected": {
3+
"status": "PASS"
4+
},
5+
"A constructed EventTarget implements dispatch correctly": {
6+
"status": "PASS"
7+
},
8+
"EventTarget can be subclassed": {
9+
"status": "PASS"
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"removing a null event listener should succeed": {
3+
"status": "PASS"
4+
}
5+
}

tests/wpt-harness/tests.json

+7
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@
2525
"console/console-namespace-object-class-string.any.js",
2626
"console/console-tests-historical.any.js",
2727
"console/idlharness.any.js",
28+
"dom/events/AddEventListenerOptions-once.any.js",
29+
"dom/events/AddEventListenerOptions-passive.any.js",
30+
"dom/events/Event-constructors.any.js",
31+
"dom/events/EventTarget-add-remove-listener.any.js",
32+
"dom/events/EventTarget-addEventListener.any.js",
33+
"dom/events/EventTarget-constructible.any.js",
34+
"dom/events/EventTarget-removeEventListener.any.js",
2835
"encoding/api-basics.any.js",
2936
"encoding/api-basics.any.js",
3037
"encoding/api-invalid-label.any.js",

0 commit comments

Comments
 (0)