diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-08-17 14:25:45 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-08-17 14:25:45 +0530 |
| commit | 98f3281256e6ff435c67d83c6895fff5841b70be (patch) | |
| tree | 6b05a448b8d049de130ac7dbe24baef0e7a1fc81 /spec/testUtils.cpp | |
| parent | b16d38df05cd80aac209f42bfcb47971c62227e6 (diff) | |
| download | null-browser-98f3281256e6ff435c67d83c6895fff5841b70be.tar.gz null-browser-98f3281256e6ff435c67d83c6895fff5841b70be.zip | |
Use view for filtering window actions + window action router spec
Diffstat (limited to '')
| -rw-r--r-- | spec/testUtils.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/testUtils.cpp b/spec/testUtils.cpp index c359e91..e5c9e96 100644 --- a/spec/testUtils.cpp +++ b/spec/testUtils.cpp @@ -1,6 +1,8 @@ #include <QtTest/QtTest> #include <QtTest/qtestcase.h> #include <cstdio> +#include <qmainwindow.h> +#include <qtestsupport_widgets.h> #include "LuaRuntime.hpp" @@ -65,3 +67,9 @@ bool wait_for_lua_to_be_true(QString lua_code) { return evaluation_completed_spy.first().first().toBool(); }); } + +void activate_window(QMainWindow *win) { + win->show(); + QVERIFY(QTest::qWaitForWindowExposed(win)); + QTRY_VERIFY(win->isActiveWindow()); +} |
