mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00

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.
18 lines
370 B
Text
18 lines
370 B
Text
|
|
|
|
TestCase := Rectangle {
|
|
Path {
|
|
commands: "M 350 300 L 550 300 ";
|
|
LineTo { x: 10; y: 100; }
|
|
// ^error{Path elements cannot be mixed with the use of the SVG commands property.}
|
|
}
|
|
|
|
property<string> cmds: "M 350 300 L 550 300 ";
|
|
|
|
Path {
|
|
// ^error{The commands property only accepts string literals.}
|
|
commands: cmds;
|
|
}
|
|
|
|
}
|
|
|