mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Add a few tests for dictionary codegen.
This commit is contained in:
parent
4379809e88
commit
b31fdf12ef
1 changed files with 34 additions and 0 deletions
|
@ -4,6 +4,40 @@
|
||||||
|
|
||||||
enum TestEnum { "", "foo", "bar" };
|
enum TestEnum { "", "foo", "bar" };
|
||||||
|
|
||||||
|
/* dictionary TestDictionary {
|
||||||
|
// boolean booleanValue;
|
||||||
|
// byte byteValue;
|
||||||
|
// octet octetValue;
|
||||||
|
// short shortValue;
|
||||||
|
// unsigned short unsignedShortValue;
|
||||||
|
// long longValue;
|
||||||
|
// unsigned long unsignedLongValue;
|
||||||
|
// long long longLongValue;
|
||||||
|
// unsigned long long unsignedLongLongValue;
|
||||||
|
// float floatValue;
|
||||||
|
// double doubleValue;
|
||||||
|
// DOMString stringValue;
|
||||||
|
// TestEnum enumValue;
|
||||||
|
// Blob interfaceValue;
|
||||||
|
// any anyValue;
|
||||||
|
}; */
|
||||||
|
|
||||||
|
dictionary TestDictionaryDefaults {
|
||||||
|
// boolean booleanValue = false;
|
||||||
|
// byte byteValue = 7;
|
||||||
|
// octet octetValue = 7;
|
||||||
|
short shortValue = 7;
|
||||||
|
unsigned short unsignedShortValue = 7;
|
||||||
|
long longValue = 7;
|
||||||
|
unsigned long unsignedLongValue = 7;
|
||||||
|
// long long longLongValue = 7;
|
||||||
|
// unsigned long long unsignedLongLongValue = 7;
|
||||||
|
// float floatValue = 7.0;
|
||||||
|
// double doubleValue = 7.0;
|
||||||
|
DOMString stringValue = "";
|
||||||
|
// TestEnum enumValue = "bar";
|
||||||
|
};
|
||||||
|
|
||||||
interface TestBinding {
|
interface TestBinding {
|
||||||
attribute boolean booleanAttribute;
|
attribute boolean booleanAttribute;
|
||||||
attribute byte byteAttribute;
|
attribute byte byteAttribute;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue