slint/internal/compiler/tests/syntax/expressions/image-url2.slint
Aurindam Jana 3523e86359
Simplify commercial license (#3063)
Base the commercial license on the Royalty-free license adding clauses pertaining to the fees.
2024-05-31 14:06:17 +02:00

15 lines
1.1 KiB
Text

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
export component SuperSimple {
property <image> i17: @image-url("foo", nine-slice(1px));
// ^error{Border widths of a nine-slice can't have units}
property <image> i18: @image-url("foo", nine-slice(1%));
// ^error{Border widths of a nine-slice can't have units}
property <image> i22: @image-url("foo", nine-slice(123456789));
// ^error{Number too big}
property <image> j01: @image-url("foo", nine-slice(1 52deg 456456456 12abc));
// ^error{Border widths of a nine-slice can't have units}
// ^^error{Border widths of a nine-slice can't have units}
// ^^^error{Number too big}
}