Skip to content

Commit 166deac

Browse files
authored
Add additional tests for various missing items (#2195)
* Add additional tests for various missing items * Remove duplicated feature
1 parent 2a005dd commit 166deac

File tree

8 files changed

+510
-9
lines changed

8 files changed

+510
-9
lines changed

custom/idl/event-handlers.idl

Lines changed: 226 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,226 @@
1+
partial interface Document {
2+
attribute EventHandler onscroll;
3+
attribute EventHandler onscrollend;
4+
attribute EventHandler onscrollsnapchange;
5+
attribute EventHandler onscrollsnapchanging;
6+
attribute EventHandler onsecuritypolicyviolation;
7+
attribute EventHandler onselectionchange;
8+
};
9+
10+
partial interface Element {
11+
attribute EventHandler onafterscriptexecute;
12+
attribute EventHandler onanimationcancel;
13+
attribute EventHandler onanimationend;
14+
attribute EventHandler onanimationiteration;
15+
attribute EventHandler onanimationstart;
16+
attribute EventHandler onauxclick;
17+
attribute EventHandler onbeforeinput;
18+
attribute EventHandler onbeforematch;
19+
attribute EventHandler onbeforescriptexecute;
20+
attribute EventHandler onbeforexrselect;
21+
attribute EventHandler onblur;
22+
attribute EventHandler onclick;
23+
attribute EventHandler oncompositionend;
24+
attribute EventHandler oncompositionstart;
25+
attribute EventHandler oncompositionupdate;
26+
attribute EventHandler oncontentvisibilityautostatechange;
27+
attribute EventHandler oncontextmenu;
28+
attribute EventHandler oncopy;
29+
attribute EventHandler oncut;
30+
attribute EventHandler ondblclick;
31+
attribute EventHandler onfocus;
32+
attribute EventHandler ongotpointercapture;
33+
attribute EventHandler oninput;
34+
attribute EventHandler onkeydown;
35+
attribute EventHandler onkeypress;
36+
attribute EventHandler onkeyup;
37+
attribute EventHandler onlostpointercapture;
38+
attribute EventHandler onmousedown;
39+
attribute EventHandler onmouseenter;
40+
attribute EventHandler onmouseleave;
41+
attribute EventHandler onmousemove;
42+
attribute EventHandler onmouseout;
43+
attribute EventHandler onmouseover;
44+
attribute EventHandler onmouseup;
45+
attribute EventHandler onmousewheel;
46+
attribute EventHandler onpaste;
47+
attribute EventHandler onpointercancel;
48+
attribute EventHandler onpointerdown;
49+
attribute EventHandler onpointerenter;
50+
attribute EventHandler onpointerleave;
51+
attribute EventHandler onpointermove;
52+
attribute EventHandler onpointerout;
53+
attribute EventHandler onpointerover;
54+
attribute EventHandler onpointerrawupdate;
55+
attribute EventHandler onpointerup;
56+
attribute EventHandler onscroll;
57+
attribute EventHandler onscrollend;
58+
attribute EventHandler onscrollsnapchange;
59+
attribute EventHandler onscrollsnapchanging;
60+
attribute EventHandler onsecuritypolicyviolation;
61+
attribute EventHandler ontouchcancel;
62+
attribute EventHandler ontouchend;
63+
attribute EventHandler ontouchmove;
64+
attribute EventHandler ontouchstart;
65+
attribute EventHandler ontransitioncancel;
66+
attribute EventHandler ontransitionend;
67+
attribute EventHandler ontransitionrun;
68+
attribute EventHandler ontransitionstart;
69+
attribute EventHandler onwebkitmouseforcechanged;
70+
attribute EventHandler onwebkitmouseforcedown;
71+
attribute EventHandler onwebkitmouseforceup;
72+
attribute EventHandler onwebkitmouseforcewillbegin;
73+
attribute EventHandler onwheel;
74+
};
75+
76+
partial interface Window {
77+
attribute EventHandler onafterprint;
78+
attribute EventHandler onbeforeprint;
79+
attribute EventHandler onbeforeunload;
80+
attribute EventHandler onblur;
81+
attribute EventHandler onerror;
82+
attribute EventHandler onfocus;
83+
attribute EventHandler ongamepadconnected;
84+
attribute EventHandler ongamepaddisconnected;
85+
attribute EventHandler onhashchange;
86+
attribute EventHandler onlanguagechange;
87+
attribute EventHandler onload;
88+
attribute EventHandler onmessage;
89+
attribute EventHandler onmessageerror;
90+
attribute EventHandler onoffline;
91+
attribute EventHandler ononline;
92+
attribute EventHandler onpagehide;
93+
attribute EventHandler onpagereveal;
94+
attribute EventHandler onpageshow;
95+
attribute EventHandler onpageswap;
96+
attribute EventHandler onpopstate;
97+
attribute EventHandler onrejectionhandled;
98+
attribute EventHandler onresize;
99+
attribute EventHandler onscrollsnapchange;
100+
attribute EventHandler onscrollsnapchanging;
101+
attribute EventHandler onstorage;
102+
attribute EventHandler onunhandledrejection;
103+
attribute EventHandler onunload;
104+
};
105+
106+
partial interface HTMLElement {
107+
attribute EventHandler onbeforetoggle;
108+
attribute EventHandler onchange;
109+
attribute EventHandler oncommand;
110+
attribute EventHandler ondrag;
111+
attribute EventHandler ondragend;
112+
attribute EventHandler ondragenter;
113+
attribute EventHandler ondragexit;
114+
attribute EventHandler ondragleave;
115+
attribute EventHandler ondragover;
116+
attribute EventHandler ondragstart;
117+
attribute EventHandler ondrop;
118+
attribute EventHandler onerror;
119+
attribute EventHandler ontoggle;
120+
};
121+
122+
partial interface HTMLCanvasElement {
123+
attribute EventHandler oncontextlost;
124+
attribute EventHandler oncontextrestored;
125+
attribute EventHandler onwebglcontextcreationerror;
126+
attribute EventHandler onwebglcontextlost;
127+
attribute EventHandler onwebglcontextrestored;
128+
};
129+
130+
partial interface HTMLDialogElement {
131+
attribute EventHandler oncancel;
132+
attribute EventHandler onclose;
133+
};
134+
135+
partial interface HTMLFormElement {
136+
attribute EventHandler onformdata;
137+
attribute EventHandler onreset;
138+
attribute EventHandler onsubmit;
139+
};
140+
141+
partial interface HTMLInputElement {
142+
attribute EventHandler oncancel;
143+
attribute EventHandler oninvalid;
144+
attribute EventHandler onselect;
145+
attribute EventHandler onselectionchange;
146+
};
147+
148+
partial interface HTMLMediaElement {
149+
attribute EventHandler onabort;
150+
attribute EventHandler oncanplay;
151+
attribute EventHandler oncanplaythrough;
152+
attribute EventHandler ondurationchange;
153+
attribute EventHandler onemptied;
154+
attribute EventHandler onended;
155+
attribute EventHandler onloadeddata;
156+
attribute EventHandler onloadedmetadata;
157+
attribute EventHandler onloadstart;
158+
attribute EventHandler onpause;
159+
attribute EventHandler onplay;
160+
attribute EventHandler onplaying;
161+
attribute EventHandler onprogress;
162+
attribute EventHandler onratechange;
163+
attribute EventHandler onseeked;
164+
attribute EventHandler onseeking;
165+
attribute EventHandler onstalled;
166+
attribute EventHandler onsuspend;
167+
attribute EventHandler ontimeupdate;
168+
attribute EventHandler onvolumechange;
169+
attribute EventHandler onwaiting;
170+
};
171+
172+
partial interface HTMLSlotElement {
173+
attribute EventHandler onslotchange;
174+
};
175+
176+
partial interface HTMLTextAreaElement {
177+
attribute EventHandler onselect;
178+
attribute EventHandler onselectionchange;
179+
};
180+
181+
partial interface HTMLTrackElement {
182+
attribute EventHandler oncuechange;
183+
};
184+
185+
partial interface HTMLVideoElement {
186+
attribute EventHandler onresize;
187+
};
188+
189+
partial interface Node {
190+
attribute EventHandler onselectstart;
191+
};
192+
193+
partial interface SVGAnimationElement {
194+
attribute EventHandler onbeginEvent;
195+
attribute EventHandler onendEvent;
196+
attribute EventHandler onrepeatEvent;
197+
};
198+
199+
partial interface SVGElement {
200+
attribute EventHandler onerror;
201+
attribute EventHandler onload;
202+
};
203+
204+
partial interface WorkerGlobalScope {
205+
attribute EventHandler onsecuritypolicyviolation;
206+
};
207+
208+
partial interface XMLHttpRequest {
209+
attribute EventHandler onabort;
210+
attribute EventHandler onerror;
211+
attribute EventHandler onload;
212+
attribute EventHandler onloadend;
213+
attribute EventHandler onloadstart;
214+
attribute EventHandler onprogress;
215+
attribute EventHandler ontimeout;
216+
};
217+
218+
partial interface XMLHttpRequestUpload {
219+
attribute EventHandler onabort;
220+
attribute EventHandler onerror;
221+
attribute EventHandler onload;
222+
attribute EventHandler onloadend;
223+
attribute EventHandler onloadstart;
224+
attribute EventHandler onprogress;
225+
attribute EventHandler ontimeout;
226+
};

custom/idl/ink.idl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Removed in https://github.com/WICG/ink-enhancement/pull/34
2+
partial interface DelegatedInkTrailPresenter {
3+
attribute unsigned long expectedImprovement;
4+
};

custom/idl/messageevent.idl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
partial interface MessageEvent {
2+
attribute boolean userActivation;
3+
};

custom/idl/mutationevent.idl

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// https://www.w3.org/TR/2024/WD-uievents-20240906/#interface-mutationevent
2+
3+
[Exposed=Window]
4+
interface MutationEvent : Event {
5+
// attrChangeType
6+
const unsigned short MODIFICATION = 1;
7+
const unsigned short ADDITION = 2;
8+
const unsigned short REMOVAL = 3;
9+
10+
readonly attribute Node? relatedNode;
11+
readonly attribute DOMString prevValue;
12+
readonly attribute DOMString newValue;
13+
readonly attribute DOMString attrName;
14+
readonly attribute unsigned short attrChange;
15+
16+
undefined initMutationEvent(DOMString typeArg,
17+
optional boolean bubblesArg = false,
18+
optional boolean cancelableArg = false,
19+
optional Node? relatedNodeArg = null,
20+
optional DOMString prevValueArg = "",
21+
optional DOMString newValueArg = "",
22+
optional DOMString attrNameArg = "",
23+
optional unsigned short attrChangeArg = 0);
24+
};

custom/idl/speech-api.idl

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,29 @@ partial interface SpeechRecognitionEvent {
22
readonly attribute USVString emma;
33
readonly attribute DOMString interpretation;
44
};
5+
6+
// https://github.com/WebAudio/web-speech-api/pull/117
7+
8+
partial interface SpeechRecognition {
9+
attribute SpeechGrammarList grammars;
10+
};
11+
12+
// The object representing a speech grammar
13+
[Exposed=Window]
14+
interface SpeechGrammar {
15+
constructor();
16+
attribute DOMString src;
17+
attribute float weight;
18+
};
19+
20+
// The object representing a speech grammar collection
21+
[Exposed=Window]
22+
interface SpeechGrammarList {
23+
constructor();
24+
readonly attribute unsigned long length;
25+
getter SpeechGrammar item(unsigned long index);
26+
undefined addFromURI(DOMString src,
27+
optional float weight = 1.0);
28+
undefined addFromString(DOMString string,
29+
optional float weight = 1.0);
30+
};

custom/idl/webnn.idl

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// https://github.com/webmachinelearning/webnn/pull/805
2+
3+
partial interface MLGraphBuilder {
4+
MLOperand cumulativeSum(MLOperand input, unsigned long axis, optional MLCumulativeSumOptions options = {});
5+
MLOperand sign(MLOperand input, optional MLOperatorOptions options = {});
6+
MLOperand tile(MLOperand input, sequence<unsigned long> repetitions, optional MLOperatorOptions options = {});
7+
8+
// Extends the family beyond the existing gather.
9+
MLOperand gatherElements(MLOperand input, MLOperand indices, optional MLGatherOptions options = {});
10+
MLOperand scatterElements(MLOperand input, MLOperand indices, MLOperand updates, optional MLScatterOptions options = {});
11+
MLOperand gatherND(MLOperand input, MLOperand indices, optional MLOperatorOptions options = {});
12+
MLOperand scatterND(MLOperand input, MLOperand indices, MLOperand updates, optional MLOperatorOptions options = {});
13+
14+
MLOperand dequantizeLinear(MLOperand input, MLOperand scale, MLOperand zeroPoint, optional MLOperatorOptions options = {});
15+
MLOperand quantizeLinear(MLOperand input, MLOperand scale, MLOperand zeroPoint, optional MLOperatorOptions options = {});
16+
17+
MLOperand logicalAnd(MLOperand a, MLOperand b, optional MLOperatorOptions options = {});
18+
MLOperand logicalOr(MLOperand a, MLOperand b, optional MLOperatorOptions options = {});
19+
MLOperand logicalXor(MLOperand a, MLOperand b, optional MLOperatorOptions options = {});
20+
MLOperand notEqual(MLOperand a, MLOperand b, optional MLOperatorOptions options = {});
21+
22+
MLOperand reverse(MLOperand input, optional MLReverseOptions options = {});
23+
};
24+
25+
dictionary MLCumulativeSumOptions : MLOperatorOptions {
26+
boolean exclusive = false; // Post-sum addition rather than inclusive pre-sum. https://en.wikipedia.org/wiki/Prefix_sum
27+
boolean reversed = false; // Reverse the summation direction
28+
};
29+
30+
dictionary MLScatterOptions : MLOperatorOptions {
31+
unsigned long axis = 0;
32+
};
33+
34+
dictionary MLReverseOptions : MLOperatorOptions {
35+
sequence<[EnforceRange] unsigned long> axes;
36+
};
37+
38+
dictionary MLSliceOptions : MLOperatorOptions {
39+
sequence<[EnforceRange] unsigned long> strides;
40+
};

0 commit comments

Comments
 (0)