diff options
Diffstat (limited to 'testing/web-platform/tests/resources/webidl2/test/syntax/idl/inherits-getter.widl')
-rw-r--r-- | testing/web-platform/tests/resources/webidl2/test/syntax/idl/inherits-getter.widl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/web-platform/tests/resources/webidl2/test/syntax/idl/inherits-getter.widl b/testing/web-platform/tests/resources/webidl2/test/syntax/idl/inherits-getter.widl new file mode 100644 index 000000000..558e81164 --- /dev/null +++ b/testing/web-platform/tests/resources/webidl2/test/syntax/idl/inherits-getter.widl @@ -0,0 +1,16 @@ +interface Animal { + + // A simple attribute that can be set to any string value. + readonly attribute DOMString name; +}; + +interface Person : Animal { + + // An attribute whose value cannot be assigned to. + readonly attribute unsigned short age; + + // An attribute that can raise an exception if it is set to an invalid value. + // Its getter behavior is inherited from Animal, and need not be specified + // the description of Person. + inherit attribute DOMString name; +};
\ No newline at end of file |