mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-02 04:48:27 +00:00
C++ testing API: Intreoduce the ElementHandle
This commit is contained in:
parent
13fe59cc2e
commit
475ced0a62
15 changed files with 225 additions and 25 deletions
|
|
@ -2,19 +2,13 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.2 OR LicenseRef-Slint-commercial
|
||||
|
||||
#pragma once
|
||||
#include "slint.h"
|
||||
#include <concepts>
|
||||
#include "slint-testing.h"
|
||||
#include <iostream>
|
||||
|
||||
// this file contains function useful for internal testing
|
||||
|
||||
namespace slint::private_api::testing {
|
||||
|
||||
inline void init()
|
||||
{
|
||||
cbindgen_private::slint_testing_init_backend();
|
||||
}
|
||||
|
||||
inline void mock_elapsed_time(int64_t time_in_ms)
|
||||
{
|
||||
cbindgen_private::slint_mock_elapsed_time(time_in_ms);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue