summaryrefslogtreecommitdiff
path: root/hyprtester/src/tests/main/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'hyprtester/src/tests/main/window.cpp')
-rw-r--r--hyprtester/src/tests/main/window.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/hyprtester/src/tests/main/window.cpp b/hyprtester/src/tests/main/window.cpp
index 306d0d8f..4645a26c 100644
--- a/hyprtester/src/tests/main/window.cpp
+++ b/hyprtester/src/tests/main/window.cpp
@@ -228,6 +228,23 @@ static bool test() {
testSwapWindow();
+ NLog::log("{}Testing window rules", Colors::YELLOW);
+ if (!spawnKitty("wr_kitty"))
+ return false;
+ {
+ auto str = getFromSocket("/activewindow");
+ const int SIZE = 200;
+ EXPECT_CONTAINS(str, "floating: 1");
+ EXPECT_CONTAINS(str, std::format("size: {},{}", SIZE, SIZE));
+ EXPECT_NOT_CONTAINS(str, "pinned: 1");
+ }
+
+ NLog::log("{}Killing all windows", Colors::YELLOW);
+ Tests::killAllWindows();
+
+ NLog::log("{}Expecting 0 windows", Colors::YELLOW);
+ EXPECT(Tests::windowCount(), 0);
+
return !ret;
}