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:
Gae24 2025-09-25 10:05:01 +02:00 committed by GitHub
parent 454d6052b4
commit 75e32ba5a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 141 additions and 43 deletions

View file

@ -20,9 +20,6 @@
[getType(DOMString invalid type) converts DOMString to Blob]
expected: FAIL
[supports(text/plain) returns true]
expected: FAIL
[supports(text/html) returns true]
expected: FAIL
@ -40,30 +37,3 @@
[supports(web text/html) returns true]
expected: FAIL
[supports(web ) returns false]
expected: FAIL
[supports(web) returns false]
expected: FAIL
[supports(web foo) returns false]
expected: FAIL
[supports(foo/bar) returns false]
expected: FAIL
[supports(weB text/html) returns false]
expected: FAIL
[supports( web text/html) returns false]
expected: FAIL
[supports(not a/real type) returns false]
expected: FAIL
[supports() returns false]
expected: FAIL
[supports( ) returns false]
expected: FAIL

View file

@ -1,10 +1,4 @@
[idlharness.https.window.html]
[ClipboardItem interface: operation getType(DOMString)]
expected: FAIL
[ClipboardItem interface: operation supports(DOMString)]
expected: FAIL
[Clipboard interface: operation read(optional ClipboardUnsanitizedFormats)]
expected: FAIL