slint/sixtyfps_compiler/tests/syntax/basic/path.60
Simon Hausmann 7b7f38ae65 Clean up compiler tests directory a little
I added files unrelated to the syntax tests in the tests/ folder, but
that won't scale. Those files aren't meant to be subject to the syntax
test and there are more files to come in the future. So this change
moves the syntax test related cases into a dedicated sub-folder, as well
as the type loader/registry related ones.
2020-07-22 14:36:01 +02:00

15 lines
372 B
Text

TestCase := Rectangle {
Path {
LineTo { x: 100; y: 0; }
LineTo { x: 100; y: 0; }
LineTo { x: 100; y: 0; }
Rectangle {}
// ^error{Rectangle is not allowed within Path. Only ArcTo Close LineTo are valid children}
}
LineTo { x: 100; y: 0; }
// ^error{LineTo can only be within the following elements: Path, PathLayout}
}