diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /testing/web-platform/tests/resources/webidl2/test/invalid | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'testing/web-platform/tests/resources/webidl2/test/invalid')
28 files changed, 160 insertions, 0 deletions
diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/idl/dict-required-default.widl b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/dict-required-default.widl new file mode 100644 index 000000000..412448d22 --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/dict-required-default.widl @@ -0,0 +1,5 @@ +// https://heycam.github.io/webidl/#required-dictionary-member +// "A required dictionary member must not have a default value." +dictionary Dict { + required long member = 0; +}; diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/idl/enum.widl b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/enum.widl new file mode 100644 index 000000000..c355c3251 --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/enum.widl @@ -0,0 +1 @@ +enum foo { 1, 2, 3};
\ No newline at end of file diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/idl/maplike-1type.widl b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/maplike-1type.widl new file mode 100644 index 000000000..33c274b8b --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/maplike-1type.widl @@ -0,0 +1,3 @@ +interface MapLikeOneType { + maplike<long>; +}
\ No newline at end of file diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/idl/module.widl b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/module.widl new file mode 100644 index 000000000..a4c79fdf1 --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/module.widl @@ -0,0 +1,25 @@ +// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06 +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 gui { + + interface Widget { /* ... */ }; + + interface Window : Widget { + gfx::GraphicsContext getGraphicsContext(); + }; + + interface Button : Widget { /* ... */ }; +};
\ No newline at end of file diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/idl/nonnullableany.widl b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/nonnullableany.widl new file mode 100644 index 000000000..389576555 --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/nonnullableany.widl @@ -0,0 +1,3 @@ +interface NonNullable { + attribute any? foo; +};
\ No newline at end of file diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/idl/nonnullableobjects.widl b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/nonnullableobjects.widl new file mode 100644 index 000000000..1deac5aee --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/nonnullableobjects.widl @@ -0,0 +1,5 @@ +interface Foo {}; + +interface NonNullable { + attribute Foo?? foo; +};
\ No newline at end of file diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/idl/raises.widl b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/raises.widl new file mode 100644 index 000000000..ff65522f2 --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/raises.widl @@ -0,0 +1,18 @@ +// getraises and setraises are not longer valid Web IDL +interface Person { + + // An attribute that can raise an exception if it is set to an invalid value. + attribute DOMString name setraises (InvalidName); + + // An attribute whose value cannot be assigned to, and which can raise an + // exception some circumstances. + readonly attribute DOMString petName getraises (NoSuchPet); +}; + +exception SomeException { +}; + +interface ExceptionThrower { + // This attribute always throws a SomeException and never returns a value. + attribute long valueOf getraises(SomeException); +};
\ No newline at end of file diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/idl/readonly-iterable.widl b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/readonly-iterable.widl new file mode 100644 index 000000000..fc4ae2be9 --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/readonly-iterable.widl @@ -0,0 +1,3 @@ +interface ReadonlyIterable { + readonly iterable<long>; +}
\ No newline at end of file diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/idl/scopedname.widl b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/scopedname.widl new file mode 100644 index 000000000..cfcb1ccc9 --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/scopedname.widl @@ -0,0 +1,2 @@ +// scoped names are no longer valid in WebIDL + typedef gfx::geom::geom2d::Point Point; diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/idl/sequenceAsAttribute.widl b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/sequenceAsAttribute.widl new file mode 100644 index 000000000..c23da82ac --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/sequenceAsAttribute.widl @@ -0,0 +1,3 @@ +interface sequenceAsAttribute { + attribute sequence<short> invalid; +};
\ No newline at end of file diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/idl/setlike-2types.widl b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/setlike-2types.widl new file mode 100644 index 000000000..1ecae22c0 --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/setlike-2types.widl @@ -0,0 +1,3 @@ +interface SetLikeTwoTypes { + setlike<long, long>; +}
\ No newline at end of file diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/idl/special-omittable.widl b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/special-omittable.widl new file mode 100644 index 000000000..bdfbfa709 --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/special-omittable.widl @@ -0,0 +1,8 @@ +// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06 +// omittable is no longer a recognized keywoard as of 20110905 +interface Dictionary { + readonly attribute unsigned long propertyCount; + + omittable getter float getProperty(DOMString propertyName); + omittable setter void setProperty(DOMString propertyName, float propertyValue); +};
\ No newline at end of file diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/idl/stringconstants.idl b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/stringconstants.idl new file mode 100644 index 000000000..44fd3ff13 --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/stringconstants.idl @@ -0,0 +1,3 @@ +interface Util { + const DOMString hello = "world"; +};
\ No newline at end of file diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/idl/typedef-nested.widl b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/typedef-nested.widl new file mode 100644 index 000000000..106f30b8f --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/idl/typedef-nested.widl @@ -0,0 +1,22 @@ + + interface Point { + attribute float x; + attribute float y; + }; + + + interface Rect { + attribute Point topleft; + attribute Point bottomright; + }; + + interface Widget { + typedef sequence<Point> PointSequence; + + readonly attribute Rect bounds; + + boolean pointWithinBounds(Point p); + boolean allPointsWithinBounds(PointSequence ps); + }; + + typedef [Clamp] octet value;
\ No newline at end of file diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/json/dict-required-default.json b/testing/web-platform/tests/resources/webidl2/test/invalid/json/dict-required-default.json new file mode 100644 index 000000000..c5afeca85 --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/json/dict-required-default.json @@ -0,0 +1,4 @@ +{ + "message": "Required member must not have a default" +, "line": 4 +} diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/json/enum.json b/testing/web-platform/tests/resources/webidl2/test/invalid/json/enum.json new file mode 100644 index 000000000..166115801 --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/json/enum.json @@ -0,0 +1,4 @@ +{ + "message": "Unexpected value in enum" +, "line": 1 +} diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/json/maplike-1type.json b/testing/web-platform/tests/resources/webidl2/test/invalid/json/maplike-1type.json new file mode 100644 index 000000000..859a820a4 --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/json/maplike-1type.json @@ -0,0 +1,4 @@ +{ + "message": "Missing second type argument in maplike declaration", + "line": 2 +}
\ No newline at end of file diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/json/module.json b/testing/web-platform/tests/resources/webidl2/test/invalid/json/module.json new file mode 100644 index 000000000..3b0984d97 --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/json/module.json @@ -0,0 +1,4 @@ +{ + "message": "Unrecognised tokens" +, "line": 2 +} diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/json/nonnullableany.json b/testing/web-platform/tests/resources/webidl2/test/invalid/json/nonnullableany.json new file mode 100644 index 000000000..cf5229e8e --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/json/nonnullableany.json @@ -0,0 +1,4 @@ +{ + "message": "Type any cannot be made nullable" +, "line": 2 +} diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/json/nonnullableobjects.json b/testing/web-platform/tests/resources/webidl2/test/invalid/json/nonnullableobjects.json new file mode 100644 index 000000000..23cbb3e5d --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/json/nonnullableobjects.json @@ -0,0 +1,4 @@ +{ + "message": "Can't nullable more than once" +, "line": 4 +} diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/json/raises.json b/testing/web-platform/tests/resources/webidl2/test/invalid/json/raises.json new file mode 100644 index 000000000..8b67afe4f --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/json/raises.json @@ -0,0 +1,4 @@ +{ + "message": "Unterminated attribute" +, "line": 5 +} diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/json/readonly-iterable.json b/testing/web-platform/tests/resources/webidl2/test/invalid/json/readonly-iterable.json new file mode 100644 index 000000000..c6f52a246 --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/json/readonly-iterable.json @@ -0,0 +1,4 @@ +{ + "message": "Invalid operation", + "line": 2 +}
\ No newline at end of file diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/json/scopedname.json b/testing/web-platform/tests/resources/webidl2/test/invalid/json/scopedname.json new file mode 100644 index 000000000..8e2cd8032 --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/json/scopedname.json @@ -0,0 +1,4 @@ +{ + "message": "No name in typedef" +, "line": 2 +} diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/json/sequenceAsAttribute.json b/testing/web-platform/tests/resources/webidl2/test/invalid/json/sequenceAsAttribute.json new file mode 100644 index 000000000..b714f5d92 --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/json/sequenceAsAttribute.json @@ -0,0 +1,4 @@ +{ + "message": "Attributes cannot accept sequence types" +, "line": 2 +} diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/json/setlike-2types.json b/testing/web-platform/tests/resources/webidl2/test/invalid/json/setlike-2types.json new file mode 100644 index 000000000..c9e49b675 --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/json/setlike-2types.json @@ -0,0 +1,4 @@ +{ + "message": "Unterminated setlike declaration", + "line": 2 +}
\ No newline at end of file diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/json/special-omittable.json b/testing/web-platform/tests/resources/webidl2/test/invalid/json/special-omittable.json new file mode 100644 index 000000000..7acb08834 --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/json/special-omittable.json @@ -0,0 +1,4 @@ +{ + "message": "Invalid operation" +, "line": 6 +} diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/json/stringconstants.json b/testing/web-platform/tests/resources/webidl2/test/invalid/json/stringconstants.json new file mode 100644 index 000000000..d5bf1a883 --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/json/stringconstants.json @@ -0,0 +1,4 @@ +{ + "message": "No value for const" +, "line": 2 +} diff --git a/testing/web-platform/tests/resources/webidl2/test/invalid/json/typedef-nested.json b/testing/web-platform/tests/resources/webidl2/test/invalid/json/typedef-nested.json new file mode 100644 index 000000000..d7fb9182f --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/invalid/json/typedef-nested.json @@ -0,0 +1,4 @@ +{ + "message": "Invalid operation" +, "line": 14 +}
\ No newline at end of file |