Index: bindings/tests/idls/core/TestInterface.idl |
diff --git a/bindings/tests/idls/core/TestInterface.idl b/bindings/tests/idls/core/TestInterface.idl |
index 135c6f8536fa1e88b00d5409a253f8132fcb9577..69a51cd797819809687b7cf6ee039d1e45fc8a7e 100644 |
--- a/bindings/tests/idls/core/TestInterface.idl |
+++ b/bindings/tests/idls/core/TestInterface.idl |
@@ -34,13 +34,14 @@ |
[ |
ActiveDOMObject, |
Conditional=CONDITION, |
- Custom=(LegacyCallAsFunction,ToV8), |
+ Custom=LegacyCallAsFunction, |
DoNotCheckConstants, |
ImplementedAs=TestInterfaceImplementation, |
Iterable, |
+ Measure, |
RuntimeEnabled=FeatureName, |
SetWrapperReferenceTo(TestInterface referencedName), |
- TypeChecking=(Interface,Unrestricted), |
+ TypeChecking=Interface, |
Exposed=(Worker,Window), |
] interface TestInterface : TestInterfaceEmpty { |
// members needed to test [ImplementedAs], as this affect attribute |
@@ -49,30 +50,38 @@ |
const unsigned long UNSIGNED_LONG = 0; |
[Reflect=CONST_CPP] const short CONST_JAVASCRIPT = 1; |
- attribute TestInterface testInterfaceAttribute; // Self-referential interface type with [ImplementedAs] |
+ [Measure] attribute TestInterface testInterfaceAttribute; // Self-referential interface type with [ImplementedAs] |
attribute TestInterfaceConstructor testInterfaceConstructorAttribute; |
+ attribute TestInterfaceConstructor TestInterface; |
+ attribute TestInterface2Constructor TestInterface2; |
attribute double doubleAttribute; |
attribute float floatAttribute; |
attribute unrestricted double unrestrictedDoubleAttribute; |
attribute unrestricted float unrestrictedFloatAttribute; |
+ attribute TestEnum testEnumAttribute; |
+ attribute DOMStringOrDouble stringOrDoubleAttribute; |
static attribute DOMString staticStringAttribute; |
+ static attribute TestInterface staticReturnDOMWrapperAttribute; |
+ [LegacyInterfaceTypeChecking] attribute TestInterfaceEmpty legacyInterfaceTypeCheckingAttribute; |
void voidMethodTestInterfaceEmptyArg(TestInterfaceEmpty testInterfaceEmptyArg); |
void voidMethodDoubleArgFloatArg(double doubleArg, float floatArg); |
void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg(unrestricted double unrestrictedDoubleArg, unrestricted float unrestrictedFloatArg); |
+ void voidMethodTestEnumArg(TestEnum testEnumArg); |
[PerWorldBindings] void voidMethod(); |
// Anonymous indexed property operations |
- getter DOMString (unsigned long index); |
+ [DoNotCheckSecurity] getter DOMString (unsigned long index); |
setter DOMString (unsigned long index, DOMString value); |
deleter boolean (unsigned long index); |
// Anonymous named property operations |
- getter DOMString (DOMString name); |
+ [DoNotCheckSecurity] getter DOMString (DOMString name); |
setter DOMString (DOMString name, DOMString value); |
deleter boolean (DOMString name); |
[NotEnumerable] stringifier; |
+ [NotEnumerable, RaisesException] serializer; |
// Per-method [Exposed] annotation support. |
void alwaysExposedMethod(); |
@@ -82,15 +91,32 @@ |
static void alwaysExposedStaticMethod(); |
[Exposed=Worker] static void workerExposedStaticMethod(); |
[Exposed=Window] static void windowExposedStaticMethod(); |
+ static TestInterface staticReturnDOMWrapperMethod(); |
attribute long alwaysExposedAttribute; |
[Exposed=Worker] attribute long workerExposedAttribute; |
[Exposed=Window] attribute long windowExposedAttribute; |
+ [Exposed=Window, RuntimeEnabled=FeatureName] void methodWithExposedAndRuntimeEnabledFlag(); |
+ [Exposed=Window] void overloadMethodWithExposedAndRuntimeEnabledFlag(long longArg); |
+ [Exposed=Window, RuntimeEnabled=FeatureName] void overloadMethodWithExposedAndRuntimeEnabledFlag(DOMString string); |
+ [Exposed=Window, RuntimeEnabled=FeatureName2] void overloadMethodWithExposedAndRuntimeEnabledFlag(Window window); |
+ |
+ [Exposed(Window FeatureName, Worker FeatureName2)] void methodWithExposedHavingRuntimeEnabldFlag(); |
+ |
[Exposed=(Window,ServiceWorker)] void windowAndServiceWorkerExposedMethod(); |
- void voidMethodPartailOverload(); |
- static void voidMethodPartailOverload(); |
+ void voidMethodPartialOverload(); |
+ void voidMethodPartialOverload(double doubleArg); |
+ static void staticVoidMethodPartialOverload(); |
+ |
+ Promise promiseMethodPartialOverload(); |
+ Promise promiseMethodPartialOverload(Window window); |
+ static Promise staticPromiseMethodPartialOverload(); |
+ |
+ [LenientThis] attribute any lenientThisAttribute; |
+ |
+ [LegacyInterfaceTypeChecking] void legacyInterfaceTypeCheckingMethod(TestInterfaceEmpty testInterfaceEmptyArg); |
}; |
TestInterface implements TestImplements; |