mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Add include_paths setter/getter to ComponentCompiler
This commit is contained in:
parent
5f30170543
commit
591ae8557b
3 changed files with 68 additions and 0 deletions
|
@ -242,6 +242,20 @@ SCENARIO("Struct Initializer List Constructor")
|
|||
SCENARIO("Component Compiler")
|
||||
{
|
||||
using namespace sixtyfps::interpreter;
|
||||
using namespace sixtyfps;
|
||||
|
||||
ComponentCompiler compiler;
|
||||
|
||||
SECTION("configure include paths")
|
||||
{
|
||||
SharedVector<SharedString> in_paths;
|
||||
in_paths.push_back("path1");
|
||||
in_paths.push_back("path2");
|
||||
compiler.set_include_paths(in_paths);
|
||||
|
||||
auto out_paths = compiler.include_paths();
|
||||
REQUIRE(out_paths.size() == 2);
|
||||
REQUIRE(out_paths[0] == "path1");
|
||||
REQUIRE(out_paths[1] == "path2");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue