mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-21 15:52:19 +00:00
C++: cmake: move the build instruction for the tests in the tests dir
This commit is contained in:
parent
0d23478469
commit
8d0cdc6ec2
4 changed files with 55 additions and 51 deletions
|
@ -97,7 +97,7 @@ SCENARIO("Value API")
|
|||
{
|
||||
REQUIRE(!value.to_image().has_value());
|
||||
slint::Image image = slint::Image::load_from_path(
|
||||
SOURCE_DIR "/../../logo/slint-logo-square-light-128x128.png");
|
||||
SOURCE_DIR "/../../../logo/slint-logo-square-light-128x128.png");
|
||||
REQUIRE(image.size().width == 128);
|
||||
value = Value(image);
|
||||
REQUIRE(value.type() == Value::Type::Image);
|
||||
|
@ -308,7 +308,7 @@ SCENARIO("Component Compiler")
|
|||
|
||||
SECTION("Compile from path")
|
||||
{
|
||||
auto result = compiler.build_from_path(SOURCE_DIR "/tests/test.slint");
|
||||
auto result = compiler.build_from_path(SOURCE_DIR "/test.slint");
|
||||
REQUIRE(result.has_value());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue