summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/WebIDL/invalid/idl
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /testing/web-platform/tests/WebIDL/invalid/idl
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-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/WebIDL/invalid/idl')
-rw-r--r--testing/web-platform/tests/WebIDL/invalid/idl/enum.widl1
-rw-r--r--testing/web-platform/tests/WebIDL/invalid/idl/module.widl25
-rw-r--r--testing/web-platform/tests/WebIDL/invalid/idl/nonnullableany.widl3
-rw-r--r--testing/web-platform/tests/WebIDL/invalid/idl/nonnullableobjects.widl5
-rw-r--r--testing/web-platform/tests/WebIDL/invalid/idl/raises.widl18
-rw-r--r--testing/web-platform/tests/WebIDL/invalid/idl/scopedname.widl2
-rw-r--r--testing/web-platform/tests/WebIDL/invalid/idl/sequenceAsAttribute.widl3
-rw-r--r--testing/web-platform/tests/WebIDL/invalid/idl/special-omittable.widl8
-rw-r--r--testing/web-platform/tests/WebIDL/invalid/idl/stringconstants.idl3
9 files changed, 68 insertions, 0 deletions
diff --git a/testing/web-platform/tests/WebIDL/invalid/idl/enum.widl b/testing/web-platform/tests/WebIDL/invalid/idl/enum.widl
new file mode 100644
index 000000000..c355c3251
--- /dev/null
+++ b/testing/web-platform/tests/WebIDL/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/WebIDL/invalid/idl/module.widl b/testing/web-platform/tests/WebIDL/invalid/idl/module.widl
new file mode 100644
index 000000000..a4c79fdf1
--- /dev/null
+++ b/testing/web-platform/tests/WebIDL/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/WebIDL/invalid/idl/nonnullableany.widl b/testing/web-platform/tests/WebIDL/invalid/idl/nonnullableany.widl
new file mode 100644
index 000000000..389576555
--- /dev/null
+++ b/testing/web-platform/tests/WebIDL/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/WebIDL/invalid/idl/nonnullableobjects.widl b/testing/web-platform/tests/WebIDL/invalid/idl/nonnullableobjects.widl
new file mode 100644
index 000000000..1deac5aee
--- /dev/null
+++ b/testing/web-platform/tests/WebIDL/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/WebIDL/invalid/idl/raises.widl b/testing/web-platform/tests/WebIDL/invalid/idl/raises.widl
new file mode 100644
index 000000000..ff65522f2
--- /dev/null
+++ b/testing/web-platform/tests/WebIDL/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/WebIDL/invalid/idl/scopedname.widl b/testing/web-platform/tests/WebIDL/invalid/idl/scopedname.widl
new file mode 100644
index 000000000..cfcb1ccc9
--- /dev/null
+++ b/testing/web-platform/tests/WebIDL/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/WebIDL/invalid/idl/sequenceAsAttribute.widl b/testing/web-platform/tests/WebIDL/invalid/idl/sequenceAsAttribute.widl
new file mode 100644
index 000000000..c23da82ac
--- /dev/null
+++ b/testing/web-platform/tests/WebIDL/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/WebIDL/invalid/idl/special-omittable.widl b/testing/web-platform/tests/WebIDL/invalid/idl/special-omittable.widl
new file mode 100644
index 000000000..bdfbfa709
--- /dev/null
+++ b/testing/web-platform/tests/WebIDL/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/WebIDL/invalid/idl/stringconstants.idl b/testing/web-platform/tests/WebIDL/invalid/idl/stringconstants.idl
new file mode 100644
index 000000000..44fd3ff13
--- /dev/null
+++ b/testing/web-platform/tests/WebIDL/invalid/idl/stringconstants.idl
@@ -0,0 +1,3 @@
+interface Util {
+ const DOMString hello = "world";
+}; \ No newline at end of file