Name Description Size
test_any_null.py interface DoubleNull { attribute any? foo; }; 343
test_argument_identifier_conflicts.py interface ArgumentIdentifierConflict { undefined foo(boolean arg1, boolean arg1); }; 382
test_argument_keywords.py interface Foo { undefined foo(object constructor); }; 687
test_argument_novoid.py interface VoidArgument1 { void foo(void arg2); }; 347
test_arraybuffer.py interface TestArrayBuffer { attribute ArrayBuffer bufferAttr; undefined bufferMethod(ArrayBuffer arg1, ArrayBuffer? arg2, sequence<ArrayBuffer> arg3); attribute ArrayBufferView viewAttr; undefined viewMethod(ArrayBufferView arg1, ArrayBufferView? arg2, sequence<ArrayBufferView> arg3); attribute Int8Array int8ArrayAttr; undefined int8ArrayMethod(Int8Array arg1, Int8Array? arg2, sequence<Int8Array> arg3); attribute Uint8Array uint8ArrayAttr; undefined uint8ArrayMethod(Uint8Array arg1, Uint8Array? arg2, sequence<Uint8Array> arg3); attribute Uint8ClampedArray uint8ClampedArrayAttr; undefined uint8ClampedArrayMethod(Uint8ClampedArray arg1, Uint8ClampedArray? arg2, sequence<Uint8ClampedArray> arg3); attribute Int16Array int16ArrayAttr; undefined int16ArrayMethod(Int16Array arg1, Int16Array? arg2, sequence<Int16Array> arg3); attribute Uint16Array uint16ArrayAttr; undefined uint16ArrayMethod(Uint16Array arg1, Uint16Array? arg2, sequence<Uint16Array> arg3); attribute Int32Array int32ArrayAttr; undefined int32ArrayMethod(Int32Array arg1, Int32Array? arg2, sequence<Int32Array> arg3); attribute Uint32Array uint32ArrayAttr; undefined uint32ArrayMethod(Uint32Array arg1, Uint32Array? arg2, sequence<Uint32Array> arg3); attribute Float32Array float32ArrayAttr; undefined float32ArrayMethod(Float32Array arg1, Float32Array? arg2, sequence<Float32Array> arg3); attribute Float64Array float64ArrayAttr; undefined float64ArrayMethod(Float64Array arg1, Float64Array? arg2, sequence<Float64Array> arg3); }; 3965
test_attr.py interface TestAttr { attribute byte b; readonly attribute byte rb; attribute octet o; readonly attribute octet ro; attribute short s; readonly attribute short rs; attribute unsigned short us; readonly attribute unsigned short rus; attribute long l; readonly attribute long rl; attribute unsigned long ul; readonly attribute unsigned long rul; attribute long long ll; readonly attribute long long rll; attribute unsigned long long ull; readonly attribute unsigned long long rull; attribute DOMString str; readonly attribute DOMString rstr; attribute object obj; readonly attribute object robj; attribute object _object; attribute float f; readonly attribute float rf; }; interface TestAttrNullable { attribute byte? b; readonly attribute byte? rb; attribute octet? o; readonly attribute octet? ro; attribute short? s; readonly attribute short? rs; attribute unsigned short? us; readonly attribute unsigned short? rus; attribute long? l; readonly attribute long? rl; attribute unsigned long? ul; readonly attribute unsigned long? rul; attribute long long? ll; readonly attribute long long? rll; attribute unsigned long long? ull; readonly attribute unsigned long long? rull; attribute DOMString? str; readonly attribute DOMString? rstr; attribute object? obj; readonly attribute object? robj; attribute object? _object; attribute float? f; readonly attribute float? rf; }; 6879
test_attr_sequence_type.py interface AttrSequenceType { attribute sequence<object> foo; }; 1773
test_attributes_on_types.py typedef [EnforceRange] long Foo; typedef [Clamp] long Bar; typedef [LegacyNullToEmptyString] DOMString Baz; dictionary A { required [EnforceRange] long a; required [Clamp] long b; [ChromeOnly, EnforceRange] long c; Foo d; }; interface B { attribute Foo typedefFoo; attribute [EnforceRange] long foo; attribute [Clamp] long bar; attribute [LegacyNullToEmptyString] DOMString baz; undefined method([EnforceRange] long foo, [Clamp] long bar, [LegacyNullToEmptyString] DOMString baz); undefined method2(optional [EnforceRange] long foo, optional [Clamp] long bar, optional [LegacyNullToEmptyString] DOMString baz); undefined method3(optional [LegacyNullToEmptyString] UTF8String foo = ""); }; interface C { attribute [EnforceRange] long? foo; attribute [Clamp] long? bar; undefined method([EnforceRange] long? foo, [Clamp] long? bar); undefined method2(optional [EnforceRange] long? foo, optional [Clamp] long? bar); }; interface Setlike { setlike<[Clamp] long>; }; interface Maplike { maplike<[Clamp] long, [EnforceRange] long>; }; interface Iterable { iterable<[Clamp] long, [EnforceRange] long>; }; 17201
test_builtin_filename.py interface Test { attribute long b; }; 262
test_builtins.py interface TestBuiltins { attribute boolean b; attribute byte s8; attribute octet u8; attribute short s16; attribute unsigned short u16; attribute long s32; attribute unsigned long u32; attribute long long s64; attribute unsigned long long u64; }; 1907
test_bytestring.py interface TestByteString { attribute ByteString bs; attribute DOMString ds; }; 3913
test_callback.py interface TestCallback { attribute CallbackType? listener; }; callback CallbackType = boolean (unsigned long arg); 1603
test_callback_constructor.py interface TestCallbackConstructor { attribute CallbackConstructorType? constructorAttribute; }; callback constructor CallbackConstructorType = TestCallbackConstructor (unsigned long arg); 2620
test_callback_interface.py callback interface TestCallbackInterface { attribute boolean bool; }; 2978
test_cereactions.py interface Foo { [CEReactions(DOMString a)] undefined foo(boolean arg2); }; 3534
test_conditional_dictionary_member.py dictionary Dict { any foo; [ChromeOnly] any bar; }; 3229
test_const.py interface TestConsts { const byte zero = 0; const byte b = -1; const octet o = 2; const short s = -3; const unsigned short us = 0x4; const long l = -0X5; const unsigned long ul = 6; const unsigned long long ull = 7; const long long ll = -010; const boolean t = true; const boolean f = false; const float fl = 0.2; const double db = 0.2; const unrestricted float ufl = 0.2; const unrestricted double udb = 0.2; const float fli = 2; const double dbi = 2; const unrestricted float ufli = 2; const unrestricted double udbi = 2; }; 3596
test_constructor.py 17090
test_constructor_global.py [Global, Exposed=TestConstructorGlobal] interface TestConstructorGlobal { constructor(); }; 1636
test_constructor_no_interface_object.py [LegacyNoInterfaceObject] interface TestConstructorLegacyNoInterfaceObject { constructor(); }; 1084
test_deduplicate.py interface Foo; interface Bar; interface Foo; 466
test_dictionary.py dictionary Dict2 : Dict1 { long child = 5; Dict1 aaandAnother; }; dictionary Dict1 { long parent; double otherParent; }; 20117
test_distinguishability.py // Give our dictionary a required member so we don't need to // mess with optional and default values. dictionary Dict { required long member; }; callback interface Foo { }; interface Bar { // Bit of a pain to get things that have dictionary types undefined passDict(Dict arg); undefined passFoo(Foo arg); undefined passNullableUnion((object? or DOMString) arg); undefined passNullable(Foo? arg); }; 15302
test_double_null.py interface DoubleNull { attribute byte?? foo; }; 345
test_duplicate_qualifiers.py interface DuplicateQualifiers1 { getter getter byte foo(unsigned long index); }; 1390
test_empty_enum.py enum TestEmptyEnum { }; 335
test_empty_sequence_default_value.py interface X { const sequence<long> foo = []; }; 1182
test_enum.py enum TestEnum { "", "foo", "bar" }; interface TestEnumInterface { TestEnum doFoo(boolean arg); readonly attribute TestEnum foo; }; 3193
test_enum_duplicate_values.py enum TestEnumDuplicateValue { "", "" }; 359
test_error_colno.py 658
test_error_lineno.py \ // This is a comment. interface Foo { }; /* This is also a comment. */ interface ? 1004
test_exposed_extended_attribute.py [Global, Exposed=Foo] interface Foo {}; [Global=(Bar, Bar1,Bar2), Exposed=Bar] interface Bar {}; [Global=(Baz, Baz2), Exposed=Baz] interface Baz {}; [Exposed=(Foo,Bar1)] interface Iface { undefined method1(); [Exposed=Bar1] readonly attribute any attr; }; [Exposed=Foo] partial interface Iface { undefined method2(); }; 9937
test_extended_attributes.py [LegacyNoInterfaceObject] interface TestExtendedAttr { [LegacyUnforgeable] readonly attribute byte b; }; 3125
test_float_types.py typedef float myFloat; typedef unrestricted float myUnrestrictedFloat; interface FloatTypes { attribute float f; attribute unrestricted float uf; attribute double d; attribute unrestricted double ud; [LenientFloat] attribute float lf; [LenientFloat] attribute double ld; undefined m1(float arg1, double arg2, float? arg3, double? arg4, myFloat arg5, unrestricted float arg6, unrestricted double arg7, unrestricted float? arg8, unrestricted double? arg9, myUnrestrictedFloat arg10); [LenientFloat] undefined m2(float arg1, double arg2, float? arg3, double? arg4, myFloat arg5, unrestricted float arg6, unrestricted double arg7, unrestricted float? arg8, unrestricted double? arg9, myUnrestrictedFloat arg10); [LenientFloat] undefined m3(float arg); [LenientFloat] undefined m4(double arg); [LenientFloat] undefined m5((float or FloatTypes) arg); [LenientFloat] undefined m6(sequence<float> arg); }; 4638
test_forward_decl.py interface ForwardDeclared; interface ForwardDeclared; interface TestForwardDecl { attribute ForwardDeclared foo; }; 334
test_global_extended_attr.py [Global, Exposed=Foo] interface Foo : Bar { getter any(DOMString name); }; [Exposed=Foo] interface Bar {}; 2885
test_identifier_conflict.py enum Foo { "a" }; interface Foo; 1161
test_incomplete_parent.py interface TestIncompleteParent : NotYetDefined { undefined foo(); }; interface NotYetDefined : EvenHigherOnTheChain { }; interface EvenHigherOnTheChain { }; 393
test_incomplete_types.py interface TestIncompleteTypes { attribute FooInterface attr1; FooInterface method1(FooInterface arg); }; interface FooInterface { }; 1777
test_interface.py interface QNameBase { attribute long foo; }; interface QNameDerived : QNameBase { attribute long long foo; attribute byte bar; }; 12509
test_interface_const_identifier_conflicts.py interface IdentifierConflict { const byte thing1 = 1; const unsigned long thing1 = 1; }; 400
test_interface_identifier_conflicts_across_members.py interface IdentifierConflictAcrossMembers1 { const byte thing1 = 1; readonly attribute long thing1; }; 4118
test_interface_maplikesetlikeiterable.py interface Foo1 { iterable<long>; readonly attribute unsigned long length; getter long(unsigned long index); attribute long unrelatedAttribute; long unrelatedMethod(); }; 27504
test_interfacemixin.py interface mixin QNameBase { const long foo = 3; }; 13977
test_legacyTreatNonObjectAsNull.py [LegacyTreatNonObjectAsNull] callback Function = any(any... arguments); 301
test_lenientSetter.py interface I { [LegacyLenientSetter=X] readonly attribute long A; }; 2156
test_method.py interface TestMethods { undefined basic(); static undefined basicStatic(); undefined basicWithSimpleArgs(boolean arg1, byte arg2, unsigned long arg3); boolean basicBoolean(); static boolean basicStaticBoolean(); boolean basicBooleanWithSimpleArgs(boolean arg1, byte arg2, unsigned long arg3); undefined optionalArg(optional byte? arg1, optional sequence<byte> arg2); undefined variadicArg(byte?... arg1); object getObject(); undefined setObject(object arg1); undefined setAny(any arg1); float doFloats(float arg1); }; 12610
test_namespace.py namespace MyNamespace { attribute any foo; any bar(); }; 5834
test_newobject.py interface Iface { [NewObject] readonly attribute Iface attr; [NewObject] Iface method(); }; 1959
test_nullable_equivalency.py interface TestNullableEquivalency1 { attribute long a; attribute long? b; }; interface TestNullableEquivalency2 { attribute ArrayBuffer a; attribute ArrayBuffer? b; }; /* Can't have dictionary-valued attributes, so can't test that here */ enum TestNullableEquivalency4Enum { "Foo", "Bar" }; interface TestNullableEquivalency4 { attribute TestNullableEquivalency4Enum a; attribute TestNullableEquivalency4Enum? b; }; interface TestNullableEquivalency5 { attribute TestNullableEquivalency4 a; attribute TestNullableEquivalency4? b; }; interface TestNullableEquivalency6 { attribute boolean a; attribute boolean? b; }; interface TestNullableEquivalency7 { attribute DOMString a; attribute DOMString? b; }; interface TestNullableEquivalency8 { attribute float a; attribute float? b; }; interface TestNullableEquivalency9 { attribute double a; attribute double? b; }; interface TestNullableEquivalency10 { attribute object a; attribute object? b; }; 4191
test_nullable_void.py interface NullableVoid { void? foo(); }; 338
test_observableArray.py dictionary A { boolean member; }; interface B { attribute ObservableArray<A> foo; }; 6871
test_optional_constraints.py interface OptionalConstraints1 { undefined foo(optional byte arg1, byte arg2); }; 1035
test_overload.py interface TestOverloads { undefined basic(); undefined basic(long arg1); boolean abitharder(TestOverloads foo); boolean abitharder(boolean foo); undefined abitharder(ArrayBuffer? foo); undefined withVariadics(long... numbers); undefined withVariadics(TestOverloads iface); undefined withVariadics(long num, TestOverloads iface); undefined optionalTest(); undefined optionalTest(optional long num1, long num2); }; 2735
test_promise.py interface A { legacycaller Promise<any> foo(); }; 4168
test_prototype_ident.py interface TestIface { static attribute boolean prototype; }; 2655
test_putForwards.py interface I { [PutForwards=B] readonly attribute long A; }; 2538
test_record.py dictionary Dict {}; interface RecordArg { undefined foo(record<DOMString, Dict> arg); }; 1673
test_replaceable.py interface I { [Replaceable=X] readonly attribute long A; }; 2062
test_sanity.py 252
test_securecontext_extended_attribute.py [SecureContext] interface TestSecureContextOnInterface { const octet TEST_CONSTANT = 0; readonly attribute byte testAttribute; undefined testMethod(byte foo); }; partial interface TestSecureContextOnInterface { const octet TEST_CONSTANT_2 = 0; readonly attribute byte testAttribute2; undefined testMethod2(byte foo); }; 18353
test_special_method_signature_mismatch.py interface SpecialMethodSignatureMismatch1 { getter long long foo(long index); }; 5531
test_special_methods.py interface SpecialMethods { getter long long (unsigned long index); setter long long (unsigned long index, long long value); getter boolean (DOMString name); setter boolean (DOMString name, boolean value); deleter boolean (DOMString name); readonly attribute unsigned long length; }; interface SpecialMethodsCombination { getter deleter boolean (DOMString name); }; 3217
test_special_methods_uniqueness.py interface SpecialMethodUniqueness1 { getter deleter boolean (DOMString name); getter boolean (DOMString name); }; 1172
test_stringifier.py interface TestStringifier { stringifier; }; 4943
test_toJSON.py interface Test { object toJSON(); }; 8703
test_treatNonCallableAsNull.py [TreatNonCallableAsNull] callback Function = any(any... arguments); interface TestTreatNonCallableAsNull1 { attribute Function? onfoo; attribute Function onbar; }; 1845
test_typedef.py typedef long mylong; typedef long? mynullablelong; interface Foo { const mylong X = 5; undefined foo(optional mynullablelong arg = 7); undefined bar(optional mynullablelong arg = null); undefined baz(mylong arg); }; 2142
test_typedef_identifier_conflict.py typedef long foo; typedef long foo; 464
test_undefined.py dictionary Dict { undefined undefinedMember; double bar; }; 5317
test_unenumerable_own_properties.py interface Foo {}; [LegacyUnenumerableNamedProperties] interface Bar : Foo { getter long(DOMString name); }; interface Baz : Bar { getter long(DOMString name); }; 1730
test_unforgeable.py interface Child : Parent { }; interface Parent { [LegacyUnforgeable] readonly attribute long foo; }; 7623
test_union.py interface TestInterface1 { }; interface TestInterface2 { }; 5415
test_union_any.py interface AnyNotInUnion { undefined foo((any or DOMString) arg); }; 365
test_union_callback_dict.py dictionary TestDict { DOMString member; }; [LegacyTreatNonObjectAsNull] callback TestCallback = undefined (); typedef (TestCallback or TestDict) TestUnionCallbackDict; 3999
test_union_nullable.py interface OneNullableInUnion { undefined foo((object? or DOMString?) arg); }; 1387
test_usvstring.py interface TestUSVString { attribute USVString svs; }; 1357
test_variadic_callback.py callback TestVariadicCallback = any(any... arguments); 238
test_variadic_constraints.py interface VariadicConstraints1 { undefined foo(byte... arg1, byte arg2); }; 1702