mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
bindings: Add test for keywords in dictionaries
This commit is contained in:
parent
203898c941
commit
f893a2eaac
5 changed files with 97 additions and 1 deletions
|
@ -30,6 +30,8 @@ dictionary TestDictionary {
|
|||
object objectValue;
|
||||
TestDictionaryDefaults dict;
|
||||
sequence<TestDictionaryDefaults> seqDict;
|
||||
// Reserved rust keyword
|
||||
DOMString type;
|
||||
};
|
||||
|
||||
dictionary TestDictionaryDefaults {
|
||||
|
@ -196,6 +198,8 @@ interface TestBinding {
|
|||
(sequence<long> or boolean)? receiveNullableUnion4();
|
||||
(unsigned long or boolean)? receiveNullableUnion5();
|
||||
sequence<long>? receiveNullableSequence();
|
||||
TestDictionary receiveTestDictionaryWithSuccessOnKeyword();
|
||||
boolean typeKeywordIsSuccess(TestDictionary arg);
|
||||
|
||||
void passBoolean(boolean arg);
|
||||
void passByte(byte arg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue