Index: Source/bindings/tests/idls/TestInterface.idl |
diff --git a/Source/bindings/tests/idls/TestInterface.idl b/Source/bindings/tests/idls/TestInterface.idl |
index 6c7628fca8f58f3364780ac5c4514605096d8371..7dfed9a9bb6e7461c5dcd94526a15c383c402969 100644 |
--- a/Source/bindings/tests/idls/TestInterface.idl |
+++ b/Source/bindings/tests/idls/TestInterface.idl |
@@ -40,6 +40,7 @@ |
RuntimeEnabled=FeatureName, |
SetWrapperReferenceTo(TestInterface referencedName), |
TypeChecking=Interface|Unrestricted, |
+ Exposed=(Worker,Window), |
] interface TestInterface : TestInterfaceEmpty { |
// members needed to test [ImplementedAs], as this affect attribute |
// configuration and method configuration, and [TypeChecking] |
@@ -71,6 +72,21 @@ |
deleter boolean (DOMString name); |
[NotEnumerable] stringifier; |
+ |
+ // Per-method [Exposed] annotation support. |
+ void alwaysExposedMethod(); |
+ [Exposed=Worker] void workerExposedMethod(); |
+ [Exposed=Window] void windowExposedMethod(); |
+ |
+ static void alwaysExposedStaticMethod(); |
+ [Exposed=Worker] static void workerExposedStaticMethod(); |
+ [Exposed=Window] static void windowExposedStaticMethod(); |
+ |
+ attribute long alwaysExposedAttribute; |
+ [Exposed=Worker] attribute long workerExposedAttribute; |
+ [Exposed=Window] attribute long windowExposedAttribute; |
+ |
+ [Exposed=(Window,ServiceWorker)] void windowAndServiceWorkerExposedMethod(); |
}; |
TestInterface implements TestImplements; |