slint/internal/compiler/tests/syntax/basic/path_commands.slint
2022-02-02 10:05:45 +01:00

35 lines
883 B
Text

// Copyright © SixtyFPS GmbH <info@sixtyfps.io>
// SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)
Test2 := Path {
width: 640px;
height: 480px;
commands: "M 0 0 M -100 0 A 100 100 0 1 0 100 0 Å 100 100 0 1 0 100 0 Z";
// ^error{Error parsing SVG commands}
}
TestCase := Rectangle {
Path {
width: 100px;
height: 100px;
commands: "hello world";
// ^error{Error parsing SVG commands}
stroke: red;
stroke-width: 1px;
}
Path {
width: 640px;
height: 480px;
commands: "M 0 0 M -100 0 A 100 100 0 1 0 100 0 A 100 100 0 1 0 100 0 Z";
}
Path {
width: 640px;
height: 480px;
commands: "M 0 0 M -100 0 A 100 100 0 1 0 0 A 100 100 0 1 0 100 0 Z";
// ^error{Error parsing SVG commands}
}
Test2 {}
}