mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Add API to the Rust and C++ interpreter library to return the names of all publicly declared callbacks
This commit is contained in:
parent
fb19588c8c
commit
855808f9b5
4 changed files with 43 additions and 1 deletions
|
@ -312,6 +312,10 @@ SCENARIO("Component Definition Properties")
|
|||
REQUIRE(properties.size() == 1);
|
||||
REQUIRE(properties[0].property_name == "test");
|
||||
REQUIRE(properties[0].property_type == Value::Type::String);
|
||||
|
||||
auto callback_names = comp_def.callback_names();
|
||||
REQUIRE(callback_names.size() == 1);
|
||||
REQUIRE(callback_names[0] == "dummy");
|
||||
}
|
||||
|
||||
SCENARIO("Component Definition Properties / Two-way bindings")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue