slint/sixtyfps_compiler/tests/syntax/basic/svg_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

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;
}
}