mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Add optional annotations for initEvent method of Event interface
This commit is contained in:
parent
cc8a9fa928
commit
fd2341bc78
3 changed files with 1 additions and 7 deletions
|
@ -35,7 +35,7 @@ interface Event {
|
||||||
[Constant]
|
[Constant]
|
||||||
readonly attribute DOMTimeStamp timeStamp;
|
readonly attribute DOMTimeStamp timeStamp;
|
||||||
|
|
||||||
void initEvent(DOMString type, boolean bubbles, boolean cancelable);
|
void initEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false);
|
||||||
};
|
};
|
||||||
|
|
||||||
dictionary EventInit {
|
dictionary EventInit {
|
||||||
|
|
|
@ -3,9 +3,6 @@
|
||||||
[Calling initEvent must unset the stop propagation flag.]
|
[Calling initEvent must unset the stop propagation flag.]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Tests initEvent's default parameter values.]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Properties of initEvent(type, true, true)]
|
[Properties of initEvent(type, true, true)]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
|
@ -878,9 +878,6 @@
|
||||||
[Event interface: attribute composed]
|
[Event interface: attribute composed]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Event interface: operation initEvent(DOMString, boolean, boolean)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Event interface: document.createEvent("Event") must inherit property "srcElement" with the proper type]
|
[Event interface: document.createEvent("Event") must inherit property "srcElement" with the proper type]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue