mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-20 06:50:10 +01:00
tests: add a few more workspace tests
This commit is contained in:
parent
55f2daa21e
commit
c51c6e38ac
1 changed files with 7 additions and 0 deletions
|
|
@ -21,6 +21,8 @@ using namespace Hyprutils::Memory;
|
||||||
static bool test() {
|
static bool test() {
|
||||||
NLog::log("{}Testing workspaces", Colors::GREEN);
|
NLog::log("{}Testing workspaces", Colors::GREEN);
|
||||||
|
|
||||||
|
EXPECT(Tests::windowCount(), 0);
|
||||||
|
|
||||||
// test on workspace "window"
|
// test on workspace "window"
|
||||||
NLog::log("{}Switching to workspace 1", Colors::YELLOW);
|
NLog::log("{}Switching to workspace 1", Colors::YELLOW);
|
||||||
OK(getFromSocket("/dispatch workspace 1"));
|
OK(getFromSocket("/dispatch workspace 1"));
|
||||||
|
|
@ -65,6 +67,11 @@ static bool test() {
|
||||||
NLog::log("{}Switching to workspace 1", Colors::YELLOW);
|
NLog::log("{}Switching to workspace 1", Colors::YELLOW);
|
||||||
OK(getFromSocket("/dispatch workspace 1"));
|
OK(getFromSocket("/dispatch workspace 1"));
|
||||||
|
|
||||||
|
{
|
||||||
|
auto str = getFromSocket("/workspaces");
|
||||||
|
EXPECT_NOT_CONTAINS(str, "workspace ID 2 (2)");
|
||||||
|
}
|
||||||
|
|
||||||
NLog::log("{}Switching to workspace m+1", Colors::YELLOW);
|
NLog::log("{}Switching to workspace m+1", Colors::YELLOW);
|
||||||
OK(getFromSocket("/dispatch workspace m+1"));
|
OK(getFromSocket("/dispatch workspace m+1"));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue