bindings: Add test for keywords in dictionaries

This commit is contained in:
Emilio Cobos Álvarez 2016-05-12 18:09:56 +02:00
parent 203898c941
commit f893a2eaac
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
5 changed files with 97 additions and 1 deletions

View file

@ -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);