Add optional annotations for initEvent method of Event interface

This commit is contained in:
_rika 2019-02-20 20:01:38 +08:00
parent cc8a9fa928
commit fd2341bc78
3 changed files with 1 additions and 7 deletions

View file

@ -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 {

View file

@ -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

View file

@ -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