| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 enum TestEnum {"", "EnumValue1", "EnumValue2", "EnumValue3"}; | 31 enum TestEnum {"", "EnumValue1", "EnumValue2", "EnumValue3"}; |
| 32 | 32 |
| 33 interface TestObjectPython { | 33 interface TestObjectPython { |
| 34 // TestInterfaceEmpty is used as a stub interface type, for testing behavior | 34 // TestInterfaceEmpty is used as a stub interface type, for testing behavior |
| 35 // that should not depend on particular type (beyond "interface or not"). | 35 // that should not depend on particular type (beyond "interface or not"). |
| 36 // readonly |
| 37 readonly attribute DOMString readonlyStringAttribute; |
| 38 readonly attribute TestInterfaceEmpty readonlyTestInterfaceEmptyAttribute; |
| 39 readonly attribute long readonlyLongAttribute; |
| 40 // Basic types |
| 36 readonly attribute Date readonlyDateAttribute; | 41 readonly attribute Date readonlyDateAttribute; |
| 37 readonly attribute DOMString readonlyStringAttribute; | 42 readonly attribute DOMString readonlyStringAttribute; |
| 38 readonly attribute DOMTimeStamp readonlyDOMTimeStampAttribute; | 43 readonly attribute DOMTimeStamp readonlyDOMTimeStampAttribute; |
| 39 readonly attribute boolean readonlyBooleanAttribute; | 44 attribute boolean booleanAttribute; |
| 40 readonly attribute byte readonlyByteAttribute; | 45 attribute byte byteAttribute; |
| 41 readonly attribute double readonlyDoubleAttribute; | 46 attribute double doubleAttribute; |
| 42 readonly attribute float readonlyFloatAttribute; | 47 attribute float floatAttribute; |
| 43 readonly attribute long readonlyLongAttribute; | 48 attribute long longAttribute; |
| 44 readonly attribute long long readonlyLongLongAttribute; | 49 attribute long long longLongAttribute; |
| 45 readonly attribute octet readonlyOctetAttribute; | 50 attribute octet octetAttribute; |
| 46 readonly attribute short readonlyShortAttribute; | 51 attribute short shortAttribute; |
| 47 readonly attribute unsigned long readonlyUnsignedLongAttribute; | 52 attribute unsigned long unsignedLongAttribute; |
| 48 readonly attribute unsigned long long readonlyUnsignedLongLongAttribute; | 53 attribute unsigned long long unsignedLongLongAttribute; |
| 49 readonly attribute unsigned short readonlyUnsignedShortAttribute; | 54 attribute unsigned short unsignedShortAttribute; |
| 50 // Non-wrapper types | 55 // Non-wrapper types |
| 51 readonly attribute NodeFilter readonlyNodeFilterAttribute; | 56 readonly attribute NodeFilter readonlyNodeFilterAttribute; |
| 52 readonly attribute SerializedScriptValue readonlySerializedScriptValueAttrib
ute; | 57 readonly attribute SerializedScriptValue readonlySerializedScriptValueAttrib
ute; |
| 53 readonly attribute any readonlyAnyAttribute; | 58 attribute any anyAttribute; |
| 54 // DOM Node types | 59 // DOM Node types |
| 55 readonly attribute Document readonlyDocumentAttribute; | 60 readonly attribute Document readonlyDocumentAttribute; |
| 56 readonly attribute DocumentFragment readonlyDocumentFragmentAttribute; | 61 readonly attribute DocumentFragment readonlyDocumentFragmentAttribute; |
| 57 readonly attribute DocumentType readonlyDocumentTypeAttribute; | 62 readonly attribute DocumentType readonlyDocumentTypeAttribute; |
| 58 readonly attribute Element readonlyElementAttribute; | 63 readonly attribute Element readonlyElementAttribute; |
| 59 readonly attribute Entity readonlyEntityAttribute; | 64 readonly attribute Entity readonlyEntityAttribute; |
| 60 readonly attribute Node readonlyNodeAttribute; | 65 readonly attribute Node readonlyNodeAttribute; |
| 61 readonly attribute ShadowRoot readonlyShadowRootAttribute; | 66 readonly attribute ShadowRoot readonlyShadowRootAttribute; |
| 62 // Typed arrays | 67 // Typed arrays |
| 63 readonly attribute ArrayBuffer readonlyArrayBufferAttribute; | 68 readonly attribute ArrayBuffer readonlyArrayBufferAttribute; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 [SetterRaisesException] readonly attribute long setterRaisesExceptionReadonl
yLongAttribute; // FIXME: stub test case b/c readonly, becomes real test case w
hen implement setters | 147 [SetterRaisesException] readonly attribute long setterRaisesExceptionReadonl
yLongAttribute; // FIXME: stub test case b/c readonly, becomes real test case w
hen implement setters |
| 143 [StrictTypeChecking] readonly attribute float strictTypeCheckingReadonlyFloa
tAttribute; // FIXME: only applicable to writable attributes, implement with se
tters | 148 [StrictTypeChecking] readonly attribute float strictTypeCheckingReadonlyFloa
tAttribute; // FIXME: only applicable to writable attributes, implement with se
tters |
| 144 [StrictTypeChecking] readonly attribute TestInterface strictTypeCheckingRead
onlyTestInterfaceAttribute; // FIXME: only applicable to writable attributes, i
mplement with setters | 149 [StrictTypeChecking] readonly attribute TestInterface strictTypeCheckingRead
onlyTestInterfaceAttribute; // FIXME: only applicable to writable attributes, i
mplement with setters |
| 145 [TreatNullAs=NullString] readonly attribute DOMString treatNullAsNullStringR
eadonlyStringAttribute; // FIXME: only applicable to writable attributes, imple
ment with setters | 150 [TreatNullAs=NullString] readonly attribute DOMString treatNullAsNullStringR
eadonlyStringAttribute; // FIXME: only applicable to writable attributes, imple
ment with setters |
| 146 [TreatReturnedNullStringAs=Null] readonly attribute DOMString treatReturnedN
ullStringAsNullReadonlyStringAttribute; | 151 [TreatReturnedNullStringAs=Null] readonly attribute DOMString treatReturnedN
ullStringAsNullReadonlyStringAttribute; |
| 147 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString treatRetu
rnedNullStringAsUndefinedReadonlyStringAttribute; | 152 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString treatRetu
rnedNullStringAsUndefinedReadonlyStringAttribute; |
| 148 [Reflect, URL] readonly attribute DOMString urlReadonlyStringAttribute; | 153 [Reflect, URL] readonly attribute DOMString urlReadonlyStringAttribute; |
| 149 [Reflect=ReflectUrlAttribute, URL] readonly attribute DOMString urlReadonlyS
tringAttribute; | 154 [Reflect=ReflectUrlAttribute, URL] readonly attribute DOMString urlReadonlyS
tringAttribute; |
| 150 [Unforgeable] readonly attribute long unforgeableReadonlyLongAttribute; | 155 [Unforgeable] readonly attribute long unforgeableReadonlyLongAttribute; |
| 151 }; | 156 }; |
| OLD | NEW |