mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
Move to Qt
Everything seems to be working Only timer is not moved over
This commit is contained in:
+1
-13
@@ -1,4 +1,5 @@
|
||||
#include "Test.hpp"
|
||||
#include <QObject>
|
||||
|
||||
TEST(UI_button, to_from_json)
|
||||
{
|
||||
@@ -10,16 +11,3 @@ TEST(UI_button, to_from_json)
|
||||
EXPECT_EQ(button.fg_color(), button2.fg_color());
|
||||
EXPECT_EQ(button.bg_color(), button2.bg_color());
|
||||
}
|
||||
|
||||
void on_click(std::string id)
|
||||
{
|
||||
UNUSED(id);
|
||||
EXPECT_EQ(id, "button_id");
|
||||
}
|
||||
|
||||
TEST(UI_button, on_click)
|
||||
{
|
||||
UI_button button("button_id", "button_text", Color(255, 255, 255), Color(0, 0, 0), on_click);
|
||||
button.click();
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||
}
|
||||
Reference in New Issue
Block a user