mirror of
https://github.com/servo/servo.git
synced 2025-09-12 07:58:20 +01:00
Add test for overloading with interface and dict
This commit is contained in:
parent
c24481ab9c
commit
58bab8a7e9
6 changed files with 49 additions and 1 deletions
|
@ -86,6 +86,10 @@ dictionary TestDictionaryDefaults {
|
|||
object? nullableObjectValue = null;
|
||||
};
|
||||
|
||||
dictionary TestURLLike {
|
||||
required DOMString href;
|
||||
};
|
||||
|
||||
[Pref="dom.testbinding.enabled",
|
||||
Exposed=(Window,Worker)
|
||||
]
|
||||
|
@ -279,6 +283,10 @@ interface TestBinding {
|
|||
void passOverloaded(ArrayBuffer arg);
|
||||
void passOverloaded(DOMString arg);
|
||||
|
||||
// https://github.com/servo/servo/pull/26154
|
||||
DOMString passOverloadedDict(Node arg);
|
||||
DOMString passOverloadedDict(TestURLLike arg);
|
||||
|
||||
void passNullableBoolean(boolean? arg);
|
||||
void passNullableByte(byte? arg);
|
||||
void passNullableOctet(octet? arg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue