mirror of
https://github.com/servo/servo.git
synced 2025-09-27 15:20:09 +01:00
script: implement ClipboardItem
getType
and supports
(#39296)
Implement ClipboardItem's getType and supports Testing: covered by existing tests --------- Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
This commit is contained in:
parent
454d6052b4
commit
75e32ba5a4
5 changed files with 141 additions and 43 deletions
|
@ -97,7 +97,7 @@ DOMInterfaces = {
|
|||
},
|
||||
|
||||
'ClipboardItem': {
|
||||
'canGc': ['Types']
|
||||
'canGc': ['GetType', 'Types']
|
||||
},
|
||||
|
||||
'CookieStore': {
|
||||
|
|
|
@ -24,9 +24,9 @@ interface ClipboardItem {
|
|||
readonly attribute PresentationStyle presentationStyle;
|
||||
readonly attribute /* FrozenArray<DOMString> */ any types;
|
||||
|
||||
// Promise<Blob> getType(DOMString type);
|
||||
[Throws] Promise<Blob> getType(DOMString type);
|
||||
|
||||
// static boolean supports(DOMString type);
|
||||
static boolean supports(DOMString type);
|
||||
};
|
||||
|
||||
enum PresentationStyle { "unspecified", "inline", "attachment" };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue