Index: bindings/tests/idls/TestInterface2.idl |
diff --git a/core/testing/LayerRectList.idl b/bindings/tests/idls/TestInterface2.idl |
similarity index 57% |
copy from core/testing/LayerRectList.idl |
copy to bindings/tests/idls/TestInterface2.idl |
index 03e63c58495c2e3e6cc1abf61b964bab68405c58..bf9c1123721d91e0271029033897fb7341ada2c8 100644 |
--- a/core/testing/LayerRectList.idl |
+++ b/bindings/tests/idls/TestInterface2.idl |
@@ -28,10 +28,25 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
+// This is for interface extended attributes that interact with another extended |
+// attribute, and thus both cannot be tested at once; and for special |
+// operations, which need a separate interface to test on. |
+// The more *minor* extended attribute should be put in this file. |
+ |
[ |
- NoInterfaceObject, // testing interfaces do not appear on global objects |
-] interface LayerRectList { |
- readonly attribute unsigned long length; |
- getter LayerRect item(unsigned long index); |
-}; |
+ Constructor, // Test interaction with [Custom=Wrap] |
+ Custom=Wrap, // Conflicts with and [Custom=ToV8], respectively |
+ DependentLifetime, // Covered by [ActiveDOMObject] |
+ SetWrapperReferenceFrom=ownerNode, // Conflicts with [SetWrapperReferenceTo] |
+ SpecialWrapFor=TestInterface|TestInterfaceEmpty, // Conflicts with [Custom=ToV8] |
+] interface TestInterface2 { |
+ // Indexed property operations with an identifier |
+ [RaisesException] getter TestInterfaceEmpty item(unsigned long index); |
+ [RaisesException] setter DOMString setItem(unsigned long index, DOMString value); |
+ [RaisesException] deleter boolean deleteItem(unsigned long index); |
+ // Named property operations with an identifier |
+ [RaisesException] getter TestInterfaceEmpty namedItem(DOMString name); |
+ [RaisesException] setter DOMString setNamedItem(DOMString name, DOMString value); |
+ [RaisesException] deleter boolean deleteNamedItem(DOMString name); |
+}; |