diff options
| author | ItsOhen <TNordfeldt@gmail.com> | 2025-09-26 00:33:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-26 00:33:58 +0200 |
| commit | d8f615751acb0ae5ff8916c284c5636034a18b50 (patch) | |
| tree | 39293004fb67215d8936eb0fd166317a8cb2c677 /hyprtester/src/tests/main/window.cpp | |
| parent | 7ce451d20c33025d4aaaf55444150c4a875b83ea (diff) | |
config: support more than 1 window rule per rule line. (#11689)
Adds support for specifying multiple rules in one line
Diffstat (limited to 'hyprtester/src/tests/main/window.cpp')
| -rw-r--r-- | hyprtester/src/tests/main/window.cpp | 17 |
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; } |
