Index: bindings/tests/idls/TestPartialInterface.idl |
diff --git a/modules/quota/StorageQuota.idl b/bindings/tests/idls/TestPartialInterface.idl |
similarity index 64% |
copy from modules/quota/StorageQuota.idl |
copy to bindings/tests/idls/TestPartialInterface.idl |
index 20c0cbc5e7178a824aac8f93463ed7669bc18c4c..c8b0ddcefe0c3b635ba1b779e2c553c0cb4d96f1 100644 |
--- a/modules/quota/StorageQuota.idl |
+++ b/bindings/tests/idls/TestPartialInterface.idl |
@@ -28,17 +28,29 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-enum StorageType { |
- "temporary", |
- "persistent" |
+enum PartialEnumType { |
+ "foo", |
+ "bar" |
}; |
+typedef DOMString PartialString; |
+ |
+callback PartialCallbackType = void (PartialString value); |
[ |
- WillBeGarbageCollected, |
- NoInterfaceObject, |
- RuntimeEnabled=QuotaPromise |
-] interface StorageQuota { |
- readonly attribute StorageType[] supportedTypes; |
- [CallWith=ExecutionContext] Promise queryInfo(StorageType type); |
- [CallWith=ExecutionContext] Promise requestPersistentQuota([Clamp] unsigned long long newQuota); |
+ Conditional=PARTIAL_CONDITION, |
+ RuntimeEnabled=PartialFeatureName, |
+] partial interface TestInterface { |
+ const unsigned short PARTIAL_UNSIGNED_SHORT = 0; |
+ |
+ attribute long partialLongAttribute; |
+ static attribute long partialStaticLongAttribute; |
+ [CallWith=ExecutionContext] attribute long partialCallWithExecutionContextLongAttribute; |
+ |
+ void partialVoidMethod(); |
+ static void partialStaticVoidMethod(); |
+ void partialVoidMethodLongArg(long longArg); |
+ [CallWith=ExecutionContext, RaisesException] void partialCallWithExecutionContextRaisesExceptionVoidMethod(); |
+ |
+ attribute PartialEnumType partialPartialEnumTypeAttribute; |
+ void partialVoidMethodPartialCallbackTypeArg(PartialCallbackType partialCallbackTypeArg); |
}; |