diff options
Diffstat (limited to 'testing/web-platform/tests/WebIDL/invalid/idl/raises.widl')
-rw-r--r-- | testing/web-platform/tests/WebIDL/invalid/idl/raises.widl | 18 |
1 files changed, 18 insertions, 0 deletions
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 |