Add a few tests for dictionary codegen.

This commit is contained in:
Ms2ger 2014-04-16 18:27:36 +02:00
parent 4379809e88
commit b31fdf12ef

View file

@ -4,6 +4,40 @@
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 {
attribute boolean booleanAttribute;
attribute byte byteAttribute;