diff options
Diffstat (limited to 'testing/web-platform/tests/resources/webidl2/test/invalid/idl/typedef-nested.widl')
-rw-r--r-- | testing/web-platform/tests/resources/webidl2/test/invalid/idl/typedef-nested.widl | 22 |
1 files changed, 22 insertions, 0 deletions
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 |