Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Unified Diff: Source/bindings/tests/idls/TestObjectPython.idl

Issue 101403002: IDL compiler: Consolidate test IDL files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: More Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/bindings/tests/idls/TestObjectPython.idl
diff --git a/Source/bindings/tests/idls/TestObjectPython.idl b/Source/bindings/tests/idls/TestObjectPython.idl
index d78256c4a36ae47282d382ddaacfe9ece9060338..8a738e607fd8f251758312b594b62c7d9b01ff2a 100644
--- a/Source/bindings/tests/idls/TestObjectPython.idl
+++ b/Source/bindings/tests/idls/TestObjectPython.idl
@@ -31,6 +31,30 @@
enum TestEnum {"", "EnumValue1", "EnumValue2", "EnumValue3"};
interface TestObjectPython {
+ // Constants
+ const unsigned short CONST_VALUE_0 = 0;
+ const unsigned short CONST_VALUE_1 = 1;
+ const unsigned short CONST_VALUE_2 = 2;
+ const unsigned short CONST_VALUE_4 = 4;
+ const unsigned short CONST_VALUE_8 = 8;
+ const short CONST_VALUE_9 = -1;
+ const DOMString CONST_VALUE_10 = "my constant string";
+ const unsigned short CONST_VALUE_11 = 0xffffffff;
+ const unsigned short CONST_VALUE_12 = 0x01;
+ const unsigned short CONST_VALUE_13 = 0X20;
+ const unsigned short CONST_VALUE_14 = 0x1abc;
+ const unsigned short CONST_VALUE_15 = 010;
+ const unsigned short CONST_VALUE_16 = -010;
+ const unsigned short CONST_VALUE_16 = -0x1A;
+ const unsigned short CONST_VALUE_17 = -0X1a;
+
+ // Extended attributes
+ [DeprecateAs=Constant] const short DEPRECATED_CONSTANT = 1;
+ [RuntimeEnabled=FeatureName] const short FEATURE_ENABLED_CONST = 1;
+ [Reflect=CONST_IMPL] const short CONST_JAVASCRIPT = 1;
+
+
+ // Attributes
// TestInterfaceEmpty is used as a stub interface type, for testing behavior
// that should not depend on particular type (beyond "interface or not").
// read only
@@ -163,6 +187,7 @@ interface TestObjectPython {
[Reflect=ReflectUrlAttribute, URL] attribute DOMString urlStringAttribute;
[Unforgeable] attribute long unforgeableLongAttribute;
+
// Methods
void voidMethod();
static void staticVoidMethod();
« no previous file with comments | « Source/bindings/tests/idls/TestInterfacePython2.idl ('k') | Source/bindings/tests/idls/TestSerializedScriptValueInterface.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698