From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- .../tests/WebIDL/valid/xml/allowany.widlprocxml | 44 +++ .../tests/WebIDL/valid/xml/array.widlprocxml | 27 ++ .../tests/WebIDL/valid/xml/attributes.widlprocxml | 38 +++ .../tests/WebIDL/valid/xml/callback.widlprocxml | 32 +++ .../tests/WebIDL/valid/xml/caller.widlprocxml | 21 ++ .../tests/WebIDL/valid/xml/constants.widlprocxml | 85 ++++++ .../tests/WebIDL/valid/xml/constructor.widlprocxml | 51 ++++ .../valid/xml/dictionary-inherits.widlprocxml | 44 +++ .../tests/WebIDL/valid/xml/dictionary.widlprocxml | 47 ++++ .../WebIDL/valid/xml/documentation-dos.widlprocxml | 59 ++++ .../WebIDL/valid/xml/documentation.widlprocxml | 61 +++++ .../tests/WebIDL/valid/xml/enum.widlprocxml | 52 ++++ .../WebIDL/valid/xml/equivalent-decl.widlprocxml | 111 ++++++++ .../valid/xml/exception-inheritance.widlprocxml | 31 +++ .../tests/WebIDL/valid/xml/exception.widlprocxml | 23 ++ .../WebIDL/valid/xml/getter-setter.widlprocxml | 43 +++ .../xml/identifier-qualified-names.widlprocxml | 107 ++++++++ .../tests/WebIDL/valid/xml/implements.widlprocxml | 51 ++++ .../valid/xml/indexed-properties.widlprocxml | 92 +++++++ .../WebIDL/valid/xml/inherits-getter.widlprocxml | 44 +++ .../valid/xml/interface-inherits.widlprocxml | 48 ++++ .../tests/WebIDL/valid/xml/iterator.widlprocxml | 132 +++++++++ .../tests/WebIDL/valid/xml/module.widlprocxml | 99 +++++++ .../WebIDL/valid/xml/namedconstructor.widlprocxml | 30 +++ .../WebIDL/valid/xml/namespaceobject.widlprocxml | 60 +++++ .../WebIDL/valid/xml/nointerfaceobject.widlprocxml | 28 ++ .../tests/WebIDL/valid/xml/nullable.widlprocxml | 29 ++ .../WebIDL/valid/xml/nullableobjects.widlprocxml | 46 ++++ .../valid/xml/operation-optional-arg.widlprocxml | 30 +++ .../tests/WebIDL/valid/xml/overloading.widlprocxml | 113 ++++++++ .../WebIDL/valid/xml/overridebuiltins.widlprocxml | 34 +++ .../WebIDL/valid/xml/partial-interface.widlprocxml | 29 ++ .../tests/WebIDL/valid/xml/primitives.widlprocxml | 112 ++++++++ .../WebIDL/valid/xml/prototyperoot.widlprocxml | 23 ++ .../tests/WebIDL/valid/xml/putforwards.widlprocxml | 27 ++ .../WebIDL/valid/xml/reg-operations.widlprocxml | 70 +++++ .../tests/WebIDL/valid/xml/replaceable.widlprocxml | 28 ++ .../tests/WebIDL/valid/xml/sequence.widlprocxml | 32 +++ .../tests/WebIDL/valid/xml/serializer.widlprocxml | 296 +++++++++++++++++++++ .../WebIDL/valid/xml/special-omittable.widlprocxml | 37 +++ .../tests/WebIDL/valid/xml/static.widlprocxml | 58 ++++ .../valid/xml/stringifier-attribute.widlprocxml | 29 ++ .../valid/xml/stringifier-custom.widlprocxml | 44 +++ .../tests/WebIDL/valid/xml/stringifier.widlprocxml | 29 ++ .../tests/WebIDL/valid/xml/treatasnull.widlprocxml | 40 +++ .../WebIDL/valid/xml/treatasundefined.widlprocxml | 40 +++ .../tests/WebIDL/valid/xml/typedef.widlprocxml | 100 +++++++ .../WebIDL/valid/xml/typesuffixes.widlprocxml | 25 ++ .../tests/WebIDL/valid/xml/uniontype.widlprocxml | 26 ++ .../valid/xml/variadic-operations.widlprocxml | 40 +++ 50 files changed, 2797 insertions(+) create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/allowany.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/array.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/attributes.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/callback.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/caller.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/constants.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/constructor.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/dictionary-inherits.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/dictionary.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/documentation-dos.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/documentation.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/enum.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/equivalent-decl.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/exception-inheritance.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/exception.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/getter-setter.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/identifier-qualified-names.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/implements.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/indexed-properties.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/inherits-getter.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/interface-inherits.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/iterator.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/module.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/namedconstructor.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/namespaceobject.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/nointerfaceobject.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/nullable.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/nullableobjects.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/operation-optional-arg.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/overloading.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/overridebuiltins.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/partial-interface.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/primitives.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/prototyperoot.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/putforwards.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/reg-operations.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/replaceable.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/sequence.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/serializer.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/special-omittable.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/static.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/stringifier-attribute.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/stringifier-custom.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/stringifier.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/treatasnull.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/treatasundefined.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/typedef.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/typesuffixes.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/uniontype.widlprocxml create mode 100644 testing/web-platform/tests/WebIDL/valid/xml/variadic-operations.widlprocxml (limited to 'testing/web-platform/tests/WebIDL/valid/xml') diff --git a/testing/web-platform/tests/WebIDL/valid/xml/allowany.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/allowany.widlprocxml new file mode 100644 index 000000000..7da508bcb --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/allowany.widlprocxml @@ -0,0 +1,44 @@ + + + + interface B { + void g(); + void g(B b); + void g([AllowAny] DOMString s); +}; + + interface B { + void g(); + void g(B b); + void g([AllowAny] DOMString s); +}; + + void g(); + + + + + void g(B b); + + + + + + + + + void g([AllowAny] DOMString s); + + + + + + AllowAny + + + + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/array.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/array.widlprocxml new file mode 100644 index 000000000..3df72ff16 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/array.widlprocxml @@ -0,0 +1,27 @@ + + + + [Constructor] +interface LotteryResults { + readonly attribute unsigned short[][] numbers; +}; + + [Constructor] +interface LotteryResults { + readonly attribute unsigned short[][] numbers; +}; + + + Constructor + + + + readonly attribute unsigned short[][] numbers; + + + + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/attributes.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/attributes.widlprocxml new file mode 100644 index 000000000..89bd8ac9b --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/attributes.widlprocxml @@ -0,0 +1,38 @@ + + + + exception InvalidName { + DOMString reason; +}; + +exception NoSuchPet { }; + +interface Person { + + attribute unsigned short age; + +}; + + exception InvalidName { + DOMString reason; +}; + + DOMString reason; + + + + + exception NoSuchPet { }; + + + interface Person { + + attribute unsigned short age; + +}; + + attribute unsigned short age; + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/callback.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/callback.widlprocxml new file mode 100644 index 000000000..9eac06ce2 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/callback.widlprocxml @@ -0,0 +1,32 @@ + + + + callback AsyncOperationCallback = void (DOMString status); + +callback interface EventHandler { + void eventOccurred(DOMString details); +}; + + callback AsyncOperationCallback = void (DOMString status); + + + + + + + + + callback interface EventHandler { + void eventOccurred(DOMString details); +}; + + void eventOccurred(DOMString details); + + + + + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/caller.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/caller.widlprocxml new file mode 100644 index 000000000..9754d4e02 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/caller.widlprocxml @@ -0,0 +1,21 @@ + + + + interface NumberQuadrupler { + legacycaller float compute(float x); +}; + + interface NumberQuadrupler { + legacycaller float compute(float x); +}; + + legacycaller float compute(float x); + + + + + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/constants.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/constants.widlprocxml new file mode 100644 index 000000000..51cb4331f --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/constants.widlprocxml @@ -0,0 +1,85 @@ + + + + interface Util { + const boolean DEBUG = false; + const short negative = -1; + const octet LF = 10; + const unsigned long BIT_MASK = 0x0000fc00; + const float AVOGADRO = 6.022e23; + const unrestricted float sobig = Infinity; + const unrestricted double minusonedividedbyzero = -Infinity; + const short notanumber = NaN; +}; + +exception Error { + const short ERR_UNKNOWN = 0; + const short ERR_OUT_OF_MEMORY = 1; + + short errorCode; +}; + + interface Util { + const boolean DEBUG = false; + const short negative = -1; + const octet LF = 10; + const unsigned long BIT_MASK = 0x0000fc00; + const float AVOGADRO = 6.022e23; + const unrestricted float sobig = Infinity; + const unrestricted double minusonedividedbyzero = -Infinity; + const short notanumber = NaN; +}; + + const boolean DEBUG = false; + + + + const short negative = -1; + + + + const octet LF = 10; + + + + const unsigned long BIT_MASK = 0x0000fc00; + + + + const float AVOGADRO = 6.022e23; + + + + const unrestricted float sobig = Infinity; + + + + const unrestricted double minusonedividedbyzero = -Infinity; + + + + const short notanumber = NaN; + + + + + exception Error { + const short ERR_UNKNOWN = 0; + const short ERR_OUT_OF_MEMORY = 1; + + short errorCode; +}; + + const short ERR_UNKNOWN = 0; + + + + const short ERR_OUT_OF_MEMORY = 1; + + + + short errorCode; + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/constructor.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/constructor.widlprocxml new file mode 100644 index 000000000..8e78fbab3 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/constructor.widlprocxml @@ -0,0 +1,51 @@ + + + + [Constructor, + Constructor(float radius)] +interface Circle { + attribute float r; + attribute float cx; + attribute float cy; + readonly attribute float circumference; +}; + + [Constructor, + Constructor(float radius)] +interface Circle { + attribute float r; + attribute float cx; + attribute float cy; + readonly attribute float circumference; +}; + + + Constructor + + + Constructor(float radius) + + + + + + + + + attribute float r; + + + + attribute float cx; + + + + attribute float cy; + + + + readonly attribute float circumference; + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/dictionary-inherits.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/dictionary-inherits.widlprocxml new file mode 100644 index 000000000..269a83cd8 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/dictionary-inherits.widlprocxml @@ -0,0 +1,44 @@ + + + + dictionary PaintOptions { + DOMString? fillPattern = "black"; + DOMString? strokePattern = null; + Point position; +}; + +dictionary WetPaintOptions : PaintOptions { + float hydrometry; +}; + + dictionary PaintOptions { + DOMString? fillPattern = "black"; + DOMString? strokePattern = null; + Point position; +}; + + DOMString? fillPattern = "black"; + + + + DOMString? strokePattern = null; + + + + Point position; + + + + + dictionary WetPaintOptions : PaintOptions { + float hydrometry; +}; + + + + + float hydrometry; + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/dictionary.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/dictionary.widlprocxml new file mode 100644 index 000000000..978ccb4e2 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/dictionary.widlprocxml @@ -0,0 +1,47 @@ + + + + dictionary PaintOptions { + DOMString? fillPattern = "black"; + DOMString? strokePattern = null; + Point position; +}; + +partial dictionary A { + long h; + long d; +}; + + dictionary PaintOptions { + DOMString? fillPattern = "black"; + DOMString? strokePattern = null; + Point position; +}; + + DOMString? fillPattern = "black"; + + + + DOMString? strokePattern = null; + + + + Point position; + + + + + partial dictionary A { + long h; + long d; +}; + + long h; + + + + long d; + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/documentation-dos.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/documentation-dos.widlprocxml new file mode 100644 index 000000000..1611f0e57 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/documentation-dos.widlprocxml @@ -0,0 +1,59 @@ + + + + interface Documentation {}; + + interface Documentation {}; + + + Testing documentation features + + +

+This is a +single paragraph +

+

+This is valid.

+

+This is valid.

+

+This is valid.

+

+This is valid.

+
    +
  • +This
  • +
  • +is
  • +
  • +valid
  • +
+
+
+This
+
+valid
+
+ + + + + + + + +
+this +is
+valid
+

+This is
valid.

+

+This is
valid.

+

+This is
valid.

+
+
+
+
diff --git a/testing/web-platform/tests/WebIDL/valid/xml/documentation.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/documentation.widlprocxml new file mode 100644 index 000000000..afe4527c2 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/documentation.widlprocxml @@ -0,0 +1,61 @@ + + + + interface Documentation {}; + + interface Documentation {}; + + + Testing documentation features + + +

+This is a +single paragraph +

+

+This is valid.

+

+This is valid.

+

+This is valid.

+

+This is valid.

+
    +
  • +This
  • +
  • +is
  • +
  • +valid
  • +
+
+
+This
+
+valid
+
+ + + + + + + + +
+this +is
+valid
+

+This is
valid.

+

+This is
valid.

+

+This is
valid.

+

+Valid

+
+
+
+
diff --git a/testing/web-platform/tests/WebIDL/valid/xml/enum.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/enum.widlprocxml new file mode 100644 index 000000000..e1e8258fb --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/enum.widlprocxml @@ -0,0 +1,52 @@ + + + + enum MealType { "rice", "noodles", "other" }; + +interface Meal { + attribute MealType type; + attribute float size; + + void initialize(MealType type, float size); +}; + + enum MealType { "rice", "noodles", "other" }; + + "rice + + + "noodles + + + "other + + + + interface Meal { + attribute MealType type; + attribute float size; + + void initialize(MealType type, float size); +}; + + attribute MealType type; + + + + attribute float size; + + + + void initialize(MealType type, float size); + + + + + + + + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/equivalent-decl.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/equivalent-decl.widlprocxml new file mode 100644 index 000000000..c322d0a5e --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/equivalent-decl.widlprocxml @@ -0,0 +1,111 @@ + + + + interface Dictionary { + readonly attribute unsigned long propertyCount; + + getter float getProperty(DOMString propertyName); + setter void setProperty(DOMString propertyName, float propertyValue); +}; + + +interface Dictionary { + readonly attribute unsigned long propertyCount; + + float getProperty(DOMString propertyName); + void setProperty(DOMString propertyName, float propertyValue); + + getter float (DOMString propertyName); + setter void (DOMString propertyName, float propertyValue); +}; + + interface Dictionary { + readonly attribute unsigned long propertyCount; + + getter float getProperty(DOMString propertyName); + setter void setProperty(DOMString propertyName, float propertyValue); +}; + + readonly attribute unsigned long propertyCount; + + + + getter float getProperty(DOMString propertyName); + + + + + + + + + setter void setProperty(DOMString propertyName, float propertyValue); + + + + + + + + + + + + + interface Dictionary { + readonly attribute unsigned long propertyCount; + + float getProperty(DOMString propertyName); + void setProperty(DOMString propertyName, float propertyValue); + + getter float (DOMString propertyName); + setter void (DOMString propertyName, float propertyValue); +}; + + readonly attribute unsigned long propertyCount; + + + + float getProperty(DOMString propertyName); + + + + + + + + + void setProperty(DOMString propertyName, float propertyValue); + + + + + + + + + + + + getter float (DOMString propertyName); + + + + + + + + + setter void (DOMString propertyName, float propertyValue); + + + + + + + + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/exception-inheritance.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/exception-inheritance.widlprocxml new file mode 100644 index 000000000..3a1f868a4 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/exception-inheritance.widlprocxml @@ -0,0 +1,31 @@ + + + + exception DOMException { + unsigned short code; + }; + + exception HierarchyRequestError : DOMException { }; + exception NoModificationAllowedError : DOMException { }; + + exception DOMException { + unsigned short code; + }; + + unsigned short code; + + + + + exception HierarchyRequestError : DOMException { }; + + + + + + exception NoModificationAllowedError : DOMException { }; + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/exception.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/exception.widlprocxml new file mode 100644 index 000000000..ac93320fe --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/exception.widlprocxml @@ -0,0 +1,23 @@ + + + + interface Dahut { + attribute DOMString type; +}; + +exception SomeException { +}; + + interface Dahut { + attribute DOMString type; +}; + + attribute DOMString type; + + + + + exception SomeException { +}; + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/getter-setter.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/getter-setter.widlprocxml new file mode 100644 index 000000000..76afc058c --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/getter-setter.widlprocxml @@ -0,0 +1,43 @@ + + + + interface Dictionary { + readonly attribute unsigned long propertyCount; + + getter float (DOMString propertyName); + setter void (DOMString propertyName, float propertyValue); +}; + + interface Dictionary { + readonly attribute unsigned long propertyCount; + + getter float (DOMString propertyName); + setter void (DOMString propertyName, float propertyValue); +}; + + readonly attribute unsigned long propertyCount; + + + + getter float (DOMString propertyName); + + + + + + + + + setter void (DOMString propertyName, float propertyValue); + + + + + + + + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/identifier-qualified-names.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/identifier-qualified-names.widlprocxml new file mode 100644 index 000000000..b6024e5ff --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/identifier-qualified-names.widlprocxml @@ -0,0 +1,107 @@ + + + + typedef float number; + + exception FrameworkException { + + const long ERR_NOT_FOUND = 1; + + long code; + }; + + interface System { + + object createObject(DOMString _interface); + + getter DOMString (DOMString keyName); + }; + + + interface TextField { + + attribute boolean _const; + + attribute DOMString? _value; + }; + +interface Foo { + void op(object interface); +}; + + typedef float number; + + + + exception FrameworkException { + + const long ERR_NOT_FOUND = 1; + + long code; + }; + + const long ERR_NOT_FOUND = 1; + + + + long code; + + + + + interface System { + + object createObject(DOMString _interface); + + getter DOMString (DOMString keyName); + }; + + object createObject(DOMString _interface); + + + + + + + + + getter DOMString (DOMString keyName); + + + + + + + + + + interface TextField { + + attribute boolean _const; + + attribute DOMString? _value; + }; + + attribute boolean _const; + + + + attribute DOMString? _value; + + + + + interface Foo { + void op(object interface); +}; + + void op(object interface); + + + + + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/implements.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/implements.widlprocxml new file mode 100644 index 000000000..3d1c1ab84 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/implements.widlprocxml @@ -0,0 +1,51 @@ + + + + interface Node { + readonly attribute unsigned short nodeType; + }; + + interface EventTarget { + void addEventListener(DOMString type, + EventListener listener, + boolean useCapture); + }; + + Node implements EventTarget; + + interface Node { + readonly attribute unsigned short nodeType; + }; + + readonly attribute unsigned short nodeType; + + + + + interface EventTarget { + void addEventListener(DOMString type, + EventListener listener, + boolean useCapture); + }; + + void addEventListener(DOMString type, + EventListener listener, + boolean useCapture); + + + + + + + + + + + + + + + + Node implements EventTarget; + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/indexed-properties.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/indexed-properties.widlprocxml new file mode 100644 index 000000000..fb83621b6 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/indexed-properties.widlprocxml @@ -0,0 +1,92 @@ + + + + interface OrderedMap { + readonly attribute unsigned long size; + + getter any getByIndex(unsigned long index); + setter void setByIndex(unsigned long index, any value); + deleter void removeByIndex(unsigned long index); + + getter any get(DOMString name); + setter creator void set(DOMString name, any value); + deleter void remove(DOMString name); +}; + + interface OrderedMap { + readonly attribute unsigned long size; + + getter any getByIndex(unsigned long index); + setter void setByIndex(unsigned long index, any value); + deleter void removeByIndex(unsigned long index); + + getter any get(DOMString name); + setter creator void set(DOMString name, any value); + deleter void remove(DOMString name); +}; + + readonly attribute unsigned long size; + + + + getter any getByIndex(unsigned long index); + + + + + + + + + setter void setByIndex(unsigned long index, any value); + + + + + + + + + + + + deleter void removeByIndex(unsigned long index); + + + + + + + + + getter any get(DOMString name); + + + + + + + + + setter creator void set(DOMString name, any value); + + + + + + + + + + + + deleter void remove(DOMString name); + + + + + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/inherits-getter.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/inherits-getter.widlprocxml new file mode 100644 index 000000000..55e7a317f --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/inherits-getter.widlprocxml @@ -0,0 +1,44 @@ + + + + interface Animal { + + readonly attribute DOMString name; +}; + +interface Person : Animal { + + readonly attribute unsigned short age; + + inherit attribute DOMString name; +}; + + interface Animal { + + readonly attribute DOMString name; +}; + + readonly attribute DOMString name; + + + + + interface Person : Animal { + + readonly attribute unsigned short age; + + inherit attribute DOMString name; +}; + + + + + readonly attribute unsigned short age; + + + + inherit attribute DOMString name; + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/interface-inherits.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/interface-inherits.widlprocxml new file mode 100644 index 000000000..94f0e29df --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/interface-inherits.widlprocxml @@ -0,0 +1,48 @@ + + + + interface Animal { + attribute DOMString name; +}; + +interface Human : Animal { + attribute Dog pet; +}; + +interface Dog : Animal { + attribute Human owner; +}; + + interface Animal { + attribute DOMString name; +}; + + attribute DOMString name; + + + + + interface Human : Animal { + attribute Dog pet; +}; + + + + + attribute Dog pet; + + + + + interface Dog : Animal { + attribute Human owner; +}; + + + + + attribute Human owner; + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/iterator.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/iterator.widlprocxml new file mode 100644 index 000000000..8ca95fbbd --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/iterator.widlprocxml @@ -0,0 +1,132 @@ + + + + interface SessionManager { + Session getSessionForUser(DOMString username); + readonly attribute unsigned long sessionCount; + + Session iterator; +}; + +interface Session { + readonly attribute DOMString username; +}; + +interface SessionManager2 { + Session2 getSessionForUser(DOMString username); + readonly attribute unsigned long sessionCount; + + Session2 iterator = SessionIterator; +}; + +interface Session2 { + readonly attribute DOMString username; +}; + +interface SessionIterator { + readonly attribute unsigned long remainingSessions; +}; + + interface NodeList { + Node iterator = NodeIterator; + }; + + interface NodeIterator { + Node iterator object; + }; + + interface SessionManager { + Session getSessionForUser(DOMString username); + readonly attribute unsigned long sessionCount; + + Session iterator; +}; + + Session getSessionForUser(DOMString username); + + + + + + + + + readonly attribute unsigned long sessionCount; + + + + Session iterator; + + + + + interface Session { + readonly attribute DOMString username; +}; + + readonly attribute DOMString username; + + + + + interface SessionManager2 { + Session2 getSessionForUser(DOMString username); + readonly attribute unsigned long sessionCount; + + Session2 iterator = SessionIterator; +}; + + Session2 getSessionForUser(DOMString username); + + + + + + + + + readonly attribute unsigned long sessionCount; + + + + Session2 iterator = SessionIterator; + + + + + interface Session2 { + readonly attribute DOMString username; +}; + + readonly attribute DOMString username; + + + + + interface SessionIterator { + readonly attribute unsigned long remainingSessions; +}; + + readonly attribute unsigned long remainingSessions; + + + + + interface NodeList { + Node iterator = NodeIterator; + }; + + Node iterator = NodeIterator; + + + + + interface NodeIterator { + Node iterator object; + }; + + Node iterator object; + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/module.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/module.widlprocxml new file mode 100644 index 000000000..b575b8705 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/module.widlprocxml @@ -0,0 +1,99 @@ + + + + + module gfx { + + module geom { + interface Shape { }; + interface Rectangle : Shape { }; + interface Path : Shape { }; + }; + + interface GraphicsContext { + void fillShape(geom::Shape s); + void strokeShape(geom::Shape s); + }; +}; + + module geom { + interface Shape { }; + interface Rectangle : Shape { }; + interface Path : Shape { }; + }; + + interface Shape { }; + + + interface Rectangle : Shape { }; + + + + + + interface Path : Shape { }; + + + + + + + interface GraphicsContext { + void fillShape(geom::Shape s); + void strokeShape(geom::Shape s); + }; + + void fillShape(geom::Shape s); + + + + + + + + + void strokeShape(geom::Shape s); + + + + + + + + + + + module gui { + + interface Widget { }; + + interface Window : Widget { + gfx::GraphicsContext getGraphicsContext(); + }; + + interface Button : Widget { }; +}; + + interface Widget { }; + + + interface Window : Widget { + gfx::GraphicsContext getGraphicsContext(); + }; + + + + + gfx::GraphicsContext getGraphicsContext(); + + + + + + interface Button : Widget { }; + + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/namedconstructor.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/namedconstructor.widlprocxml new file mode 100644 index 000000000..9f6616128 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/namedconstructor.widlprocxml @@ -0,0 +1,30 @@ + + + + [NamedConstructor=Audio, + NamedConstructor=Audio(DOMString src)] +interface HTMLAudioElement : HTMLMediaElement { +}; + + [NamedConstructor=Audio, + NamedConstructor=Audio(DOMString src)] +interface HTMLAudioElement : HTMLMediaElement { +}; + + + NamedConstructor + + + NamedConstructor=Audio(DOMString src) + + + + + + + + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/namespaceobject.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/namespaceobject.widlprocxml new file mode 100644 index 000000000..af0cde937 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/namespaceobject.widlprocxml @@ -0,0 +1,60 @@ + + + + + [NamespaceObject] +module acme { + + exception DeviceException { }; + + module pim { + + [Constructor] + interface Contact { }; + + [Constructor, + NamedConstructor=RecurringEvent(long freq)] + interface CalendarEvent { }; + }; +}; + + + + + exception DeviceException { }; + + + module pim { + + [Constructor] + interface Contact { }; + + [Constructor, + NamedConstructor=RecurringEvent(long freq)] + interface CalendarEvent { }; + }; + + [Constructor] + interface Contact { }; + + + + + + [Constructor, + NamedConstructor=RecurringEvent(long freq)] + interface CalendarEvent { }; + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/nointerfaceobject.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/nointerfaceobject.widlprocxml new file mode 100644 index 000000000..f64f116b6 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/nointerfaceobject.widlprocxml @@ -0,0 +1,28 @@ + + + + [NoInterfaceObject] +interface Query { + any lookupEntry(unsigned long key); +}; + + [NoInterfaceObject] +interface Query { + any lookupEntry(unsigned long key); +}; + + + NoInterfaceObject + + + + any lookupEntry(unsigned long key); + + + + + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/nullable.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/nullable.widlprocxml new file mode 100644 index 000000000..8739e4432 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/nullable.widlprocxml @@ -0,0 +1,29 @@ + + + + interface MyConstants { + const boolean? ARE_WE_THERE_YET = false; +}; + +interface Node { + readonly attribute DOMString? namespaceURI; +}; + + interface MyConstants { + const boolean? ARE_WE_THERE_YET = false; +}; + + const boolean? ARE_WE_THERE_YET = false; + + + + + interface Node { + readonly attribute DOMString? namespaceURI; +}; + + readonly attribute DOMString? namespaceURI; + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/nullableobjects.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/nullableobjects.widlprocxml new file mode 100644 index 000000000..22d9fdd25 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/nullableobjects.widlprocxml @@ -0,0 +1,46 @@ + + + + interface A { +}; +interface B { +}; +interface C { + void f(A? x); + void f(B? x); + +}; + + interface A { +}; + + + interface B { +}; + + + interface C { + void f(A? x); + void f(B? x); + +}; + + void f(A? x); + + + + + + + + + void f(B? x); + + + + + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/operation-optional-arg.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/operation-optional-arg.widlprocxml new file mode 100644 index 000000000..54aef1f87 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/operation-optional-arg.widlprocxml @@ -0,0 +1,30 @@ + + + + interface ColorCreator { + object createColor(float v1, float v2, float v3, optional float alpha = 3.5); +}; + + interface ColorCreator { + object createColor(float v1, float v2, float v3, optional float alpha = 3.5); +}; + + object createColor(float v1, float v2, float v3, optional float alpha = 3.5); + + + + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/overloading.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/overloading.widlprocxml new file mode 100644 index 000000000..db6da7a68 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/overloading.widlprocxml @@ -0,0 +1,113 @@ + + + + interface A { +}; + +interface B { +}; + +interface C { + void f(A x); + void f(B x); +}; + +interface A { +void f(DOMString a); +void f([AllowAny] DOMString a, DOMString b, float... c); +void f(); +void f(long a, DOMString b, optional DOMString c, float... d); +}; + + interface A { +}; + + + interface B { +}; + + + interface C { + void f(A x); + void f(B x); +}; + + void f(A x); + + + + + + + + + void f(B x); + + + + + + + + + + interface A { +void f(DOMString a); +void f([AllowAny] DOMString a, DOMString b, float... c); +void f(); +void f(long a, DOMString b, optional DOMString c, float... d); +}; + + void f(DOMString a); + + + + + + + + + void f([AllowAny] DOMString a, DOMString b, float... c); + + + + + + AllowAny + + + + + + + + + + + + + + void f(); + + + + + void f(long a, DOMString b, optional DOMString c, float... d); + + + + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/overridebuiltins.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/overridebuiltins.widlprocxml new file mode 100644 index 000000000..56c92517b --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/overridebuiltins.widlprocxml @@ -0,0 +1,34 @@ + + + + [OverrideBuiltins] +interface StringMap2 { + readonly attribute unsigned long length; + getter DOMString lookup(DOMString key); +}; + + [OverrideBuiltins] +interface StringMap2 { + readonly attribute unsigned long length; + getter DOMString lookup(DOMString key); +}; + + + OverrideBuiltins + + + + readonly attribute unsigned long length; + + + + getter DOMString lookup(DOMString key); + + + + + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/partial-interface.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/partial-interface.widlprocxml new file mode 100644 index 000000000..8d7dcb4e4 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/partial-interface.widlprocxml @@ -0,0 +1,29 @@ + + + + interface Foo { + attribute DOMString bar; +}; + +partial interface Foo { + attribute DOMString quux; +}; + + interface Foo { + attribute DOMString bar; +}; + + attribute DOMString bar; + + + + + partial interface Foo { + attribute DOMString quux; +}; + + attribute DOMString quux; + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/primitives.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/primitives.widlprocxml new file mode 100644 index 000000000..46977a2d7 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/primitives.widlprocxml @@ -0,0 +1,112 @@ + + + + interface Primitives { + attribute boolean truth; + attribute byte character; + attribute octet value; + attribute short number; + attribute unsigned short positive; + attribute long big; + attribute unsigned long bigpositive; + attribute long long bigbig; + attribute unsigned long long bigbigpositive; + attribute float real; + attribute double bigreal; + attribute unrestricted float realwithinfinity; + attribute unrestricted double bigrealwithinfinity; + attribute DOMString string; + attribute ByteString bytes; + attribute Date date; + attribute RegExp regexp; +}; + + interface Primitives { + attribute boolean truth; + attribute byte character; + attribute octet value; + attribute short number; + attribute unsigned short positive; + attribute long big; + attribute unsigned long bigpositive; + attribute long long bigbig; + attribute unsigned long long bigbigpositive; + attribute float real; + attribute double bigreal; + attribute unrestricted float realwithinfinity; + attribute unrestricted double bigrealwithinfinity; + attribute DOMString string; + attribute ByteString bytes; + attribute Date date; + attribute RegExp regexp; +}; + + attribute boolean truth; + + + + attribute byte character; + + + + attribute octet value; + + + + attribute short number; + + + + attribute unsigned short positive; + + + + attribute long big; + + + + attribute unsigned long bigpositive; + + + + attribute long long bigbig; + + + + attribute unsigned long long bigbigpositive; + + + + attribute float real; + + + + attribute double bigreal; + + + + attribute unrestricted float realwithinfinity; + + + + attribute unrestricted double bigrealwithinfinity; + + + + attribute DOMString string; + + + + attribute ByteString bytes; + + + + attribute Date date; + + + + attribute RegExp regexp; + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/prototyperoot.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/prototyperoot.widlprocxml new file mode 100644 index 000000000..2e56cd75e --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/prototyperoot.widlprocxml @@ -0,0 +1,23 @@ + + + + [PrototypeRoot] +interface Node { + readonly attribute unsigned short nodeType; +}; + + [PrototypeRoot] +interface Node { + readonly attribute unsigned short nodeType; +}; + + + PrototypeRoot + + + + readonly attribute unsigned short nodeType; + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/putforwards.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/putforwards.widlprocxml new file mode 100644 index 000000000..634fad55a --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/putforwards.widlprocxml @@ -0,0 +1,27 @@ + + + + interface Person { + [PutForwards=full] readonly attribute Name name; + attribute unsigned short age; +}; + + interface Person { + [PutForwards=full] readonly attribute Name name; + attribute unsigned short age; +}; + + [PutForwards=full] readonly attribute Name name; + + + PutForwards + + + + + + attribute unsigned short age; + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/reg-operations.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/reg-operations.widlprocxml new file mode 100644 index 000000000..3b756ed68 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/reg-operations.widlprocxml @@ -0,0 +1,70 @@ + + + + interface Dimensions { + attribute unsigned long width; + attribute unsigned long height; +}; + +exception NoPointerDevice { }; + +interface Button { + + boolean isMouseOver(); + + void setDimensions(Dimensions size); + void setDimensions(unsigned long width, unsigned long height); +}; + + interface Dimensions { + attribute unsigned long width; + attribute unsigned long height; +}; + + attribute unsigned long width; + + + + attribute unsigned long height; + + + + + exception NoPointerDevice { }; + + + interface Button { + + boolean isMouseOver(); + + void setDimensions(Dimensions size); + void setDimensions(unsigned long width, unsigned long height); +}; + + boolean isMouseOver(); + + + + + void setDimensions(Dimensions size); + + + + + + + + + void setDimensions(unsigned long width, unsigned long height); + + + + + + + + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/replaceable.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/replaceable.widlprocxml new file mode 100644 index 000000000..f97621668 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/replaceable.widlprocxml @@ -0,0 +1,28 @@ + + + + interface Counter { + [Replaceable] readonly attribute unsigned long value; + void increment(); +}; + + interface Counter { + [Replaceable] readonly attribute unsigned long value; + void increment(); +}; + + [Replaceable] readonly attribute unsigned long value; + + + Replaceable + + + + + + void increment(); + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/sequence.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/sequence.widlprocxml new file mode 100644 index 000000000..d5f456417 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/sequence.widlprocxml @@ -0,0 +1,32 @@ + + + + interface Canvas { + void drawPolygon(sequence<float> coordinates); + sequence<float> getInflectionPoints(); +}; + + interface Canvas { + void drawPolygon(sequence<float> coordinates); + sequence<float> getInflectionPoints(); +}; + + void drawPolygon(sequence<float> coordinates); + + + + + + + + + + + sequence<float> getInflectionPoints(); + + + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/serializer.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/serializer.widlprocxml new file mode 100644 index 000000000..eb4219f8a --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/serializer.widlprocxml @@ -0,0 +1,296 @@ + + + + interface Transaction { + readonly attribute Account from; + readonly attribute Account to; + readonly attribute float amount; + readonly attribute DOMString description; + readonly attribute unsigned long number; + + serializer; +}; + +interface Account { + attribute DOMString name; + attribute unsigned long number; + serializer DOMString serialize(); +}; + +interface Transaction2 { + readonly attribute Account2 from; + readonly attribute Account2 to; + readonly attribute float amount; + readonly attribute DOMString description; + readonly attribute unsigned long number; + + serializer = { from, to, amount, description }; +}; + +interface Account2 { + attribute DOMString name; + attribute unsigned long number; + serializer = number; +}; + +interface Account3 { + attribute DOMString name; + attribute unsigned long number; + + serializer = { attribute }; +}; + +interface Account4 { + getter object getItem(unsigned long index); + serializer = { getter }; +}; + +interface Account5 : Account { + attribute DOMString secondname; + serializer = { inherit, secondname }; +}; + +interface Account6 : Account { + attribute DOMString secondname; + serializer = { inherit, attribute }; +}; + +interface Account7 { + attribute DOMString name; + attribute unsigned long number; + serializer = [ name, number ]; +}; + +interface Account8 { + getter object getItem(unsigned long index); + serializer = [ getter ]; +}; + + interface Transaction { + readonly attribute Account from; + readonly attribute Account to; + readonly attribute float amount; + readonly attribute DOMString description; + readonly attribute unsigned long number; + + serializer; +}; + + readonly attribute Account from; + + + + readonly attribute Account to; + + + + readonly attribute float amount; + + + + readonly attribute DOMString description; + + + + readonly attribute unsigned long number; + + + + serializer; + + + + interface Account { + attribute DOMString name; + attribute unsigned long number; + serializer DOMString serialize(); +}; + + attribute DOMString name; + + + + attribute unsigned long number; + + + + serializer DOMString serialize(); + + + + + + interface Transaction2 { + readonly attribute Account2 from; + readonly attribute Account2 to; + readonly attribute float amount; + readonly attribute DOMString description; + readonly attribute unsigned long number; + + serializer = { from, to, amount, description }; +}; + + readonly attribute Account2 from; + + + + readonly attribute Account2 to; + + + + readonly attribute float amount; + + + + readonly attribute DOMString description; + + + + readonly attribute unsigned long number; + + + + serializer = { from, to, amount, description }; + + + + + + + + + + interface Account2 { + attribute DOMString name; + attribute unsigned long number; + serializer = number; +}; + + attribute DOMString name; + + + + attribute unsigned long number; + + + + serializer = number; + + + + interface Account3 { + attribute DOMString name; + attribute unsigned long number; + + serializer = { attribute }; +}; + + attribute DOMString name; + + + + attribute unsigned long number; + + + + serializer = { attribute }; + + + + + interface Account4 { + getter object getItem(unsigned long index); + serializer = { getter }; +}; + + getter object getItem(unsigned long index); + + + + + + + + + serializer = { getter }; + + + + + interface Account5 : Account { + attribute DOMString secondname; + serializer = { inherit, secondname }; +}; + + + + + attribute DOMString secondname; + + + + serializer = { inherit, secondname }; + + + + + + + interface Account6 : Account { + attribute DOMString secondname; + serializer = { inherit, attribute }; +}; + + + + + attribute DOMString secondname; + + + + serializer = { inherit, attribute }; + + + + + interface Account7 { + attribute DOMString name; + attribute unsigned long number; + serializer = [ name, number ]; +}; + + attribute DOMString name; + + + + attribute unsigned long number; + + + + serializer = [ name, number ]; + + + + + + + + interface Account8 { + getter object getItem(unsigned long index); + serializer = [ getter ]; +}; + + getter object getItem(unsigned long index); + + + + + + + + + serializer = [ getter ]; + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/special-omittable.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/special-omittable.widlprocxml new file mode 100644 index 000000000..1986d190a --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/special-omittable.widlprocxml @@ -0,0 +1,37 @@ + + + + + interface Dictionary { + readonly attribute unsigned long propertyCount; + + omittable getter float getProperty(DOMString propertyName); + omittable setter void setProperty(DOMString propertyName, float propertyValue); +}; + + readonly attribute unsigned long propertyCount; + + + + omittable getter float getProperty(DOMString propertyName); + + + + + + + + + omittable setter void setProperty(DOMString propertyName, float propertyValue); + + + + + + + + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/static.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/static.widlprocxml new file mode 100644 index 000000000..03c14e16e --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/static.widlprocxml @@ -0,0 +1,58 @@ + + + + interface Point { }; + +interface Circle { + attribute float cx; + attribute float cy; + attribute float radius; + + static readonly attribute long triangulationCount; + static Point triangulate(Circle c1, Circle c2, Circle c3); +}; + + interface Point { }; + + + interface Circle { + attribute float cx; + attribute float cy; + attribute float radius; + + static readonly attribute long triangulationCount; + static Point triangulate(Circle c1, Circle c2, Circle c3); +}; + + attribute float cx; + + + + attribute float cy; + + + + attribute float radius; + + + + static readonly attribute long triangulationCount; + + + + static Point triangulate(Circle c1, Circle c2, Circle c3); + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/stringifier-attribute.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/stringifier-attribute.widlprocxml new file mode 100644 index 000000000..082ce4d34 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/stringifier-attribute.widlprocxml @@ -0,0 +1,29 @@ + + + + [Constructor] +interface Student { + attribute unsigned long id; + stringifier attribute DOMString name; +}; + + [Constructor] +interface Student { + attribute unsigned long id; + stringifier attribute DOMString name; +}; + + + Constructor + + + + attribute unsigned long id; + + + + stringifier attribute DOMString name; + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/stringifier-custom.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/stringifier-custom.widlprocxml new file mode 100644 index 000000000..cdab1ccfc --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/stringifier-custom.widlprocxml @@ -0,0 +1,44 @@ + + + + [Constructor] +interface Student { + attribute unsigned long id; + attribute DOMString? familyName; + attribute DOMString givenName; + + stringifier DOMString (); +}; + + [Constructor] +interface Student { + attribute unsigned long id; + attribute DOMString? familyName; + attribute DOMString givenName; + + stringifier DOMString (); +}; + + + Constructor + + + + attribute unsigned long id; + + + + attribute DOMString? familyName; + + + + attribute DOMString givenName; + + + + stringifier DOMString (); + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/stringifier.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/stringifier.widlprocxml new file mode 100644 index 000000000..4a18b80b7 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/stringifier.widlprocxml @@ -0,0 +1,29 @@ + + + + interface A { + stringifier DOMString (); +}; + +interface A { + stringifier; +}; + + interface A { + stringifier DOMString (); +}; + + stringifier DOMString (); + + + + + + interface A { + stringifier; +}; + + stringifier; + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/treatasnull.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/treatasnull.widlprocxml new file mode 100644 index 000000000..a57ae163f --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/treatasnull.widlprocxml @@ -0,0 +1,40 @@ + + + + interface Dog { + attribute DOMString name; + attribute DOMString owner; + + boolean isMemberOfBreed([TreatNullAs=EmptyString] DOMString breedName); +}; + + interface Dog { + attribute DOMString name; + attribute DOMString owner; + + boolean isMemberOfBreed([TreatNullAs=EmptyString] DOMString breedName); +}; + + attribute DOMString name; + + + + attribute DOMString owner; + + + + boolean isMemberOfBreed([TreatNullAs=EmptyString] DOMString breedName); + + + + + + TreatNullAs + + + + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/treatasundefined.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/treatasundefined.widlprocxml new file mode 100644 index 000000000..17e71081d --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/treatasundefined.widlprocxml @@ -0,0 +1,40 @@ + + + + interface Cat { + attribute DOMString name; + attribute DOMString owner; + + boolean isMemberOfBreed([TreatUndefinedAs=EmptyString] DOMString breedName); +}; + + interface Cat { + attribute DOMString name; + attribute DOMString owner; + + boolean isMemberOfBreed([TreatUndefinedAs=EmptyString] DOMString breedName); +}; + + attribute DOMString name; + + + + attribute DOMString owner; + + + + boolean isMemberOfBreed([TreatUndefinedAs=EmptyString] DOMString breedName); + + + + + + TreatUndefinedAs + + + + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/typedef.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/typedef.widlprocxml new file mode 100644 index 000000000..785f6706e --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/typedef.widlprocxml @@ -0,0 +1,100 @@ + + + + interface Point { + attribute float x; + attribute float y; + }; + + typedef sequence<Point> PointSequence; + + interface Rect { + attribute Point topleft; + attribute Point bottomright; + }; + + interface Widget { + + readonly attribute Rect bounds; + + boolean pointWithinBounds(Point p); + boolean allPointsWithinBounds(PointSequence ps); + }; + + typedef [Clamp] octet value; + + interface Point { + attribute float x; + attribute float y; + }; + + attribute float x; + + + + attribute float y; + + + + + typedef sequence<Point> PointSequence; + + + + + + interface Rect { + attribute Point topleft; + attribute Point bottomright; + }; + + attribute Point topleft; + + + + attribute Point bottomright; + + + + + interface Widget { + + readonly attribute Rect bounds; + + boolean pointWithinBounds(Point p); + boolean allPointsWithinBounds(PointSequence ps); + }; + + readonly attribute Rect bounds; + + + + boolean pointWithinBounds(Point p); + + + + + + + + + boolean allPointsWithinBounds(PointSequence ps); + + + + + + + + + + typedef [Clamp] octet value; + + + + Clamp + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/typesuffixes.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/typesuffixes.widlprocxml new file mode 100644 index 000000000..830fe62bc --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/typesuffixes.widlprocxml @@ -0,0 +1,25 @@ + + + + interface Suffixes { + void test(sequence<DOMString[]?>? foo); +}; + + interface Suffixes { + void test(sequence<DOMString[]?>? foo); +}; + + void test(sequence<DOMString[]?>? foo); + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/uniontype.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/uniontype.widlprocxml new file mode 100644 index 000000000..7d0880799 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/uniontype.widlprocxml @@ -0,0 +1,26 @@ + + + + interface Union { + attribute (float or (Date or Event) or (Node or DOMString)?) test; +}; + + interface Union { + attribute (float or (Date or Event) or (Node or DOMString)?) test; +}; + + attribute (float or (Date or Event) or (Node or DOMString)?) test; + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/WebIDL/valid/xml/variadic-operations.widlprocxml b/testing/web-platform/tests/WebIDL/valid/xml/variadic-operations.widlprocxml new file mode 100644 index 000000000..0bc9f7844 --- /dev/null +++ b/testing/web-platform/tests/WebIDL/valid/xml/variadic-operations.widlprocxml @@ -0,0 +1,40 @@ + + + + interface IntegerSet { + readonly attribute unsigned long cardinality; + + void union(long... ints); + void intersection(long... ints); +}; + + interface IntegerSet { + readonly attribute unsigned long cardinality; + + void union(long... ints); + void intersection(long... ints); +}; + + readonly attribute unsigned long cardinality; + + + + void union(long... ints); + + + + + + + + + void intersection(long... ints); + + + + + + + + + -- cgit v1.2.3