From 6d0dcf06ef90b87f5579aebfdc4ae950869e0fcd Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 15 Feb 2012 18:02:02 +0000 Subject: [PATCH] tests: make t/504-move-workspace-to-output consistent with the previous commit --- testcases/t/504-move-workspace-to-output.t | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/testcases/t/504-move-workspace-to-output.t b/testcases/t/504-move-workspace-to-output.t index 7395c2ea..4a400698 100644 --- a/testcases/t/504-move-workspace-to-output.t +++ b/testcases/t/504-move-workspace-to-output.t @@ -67,14 +67,17 @@ sub workspaces_per_screen { ok('5' ~~ @$x1, 'workspace 5 now on xinerama-1'); ################################################################################ -# Verify that the last workspace on an output cannot be moved. +# Verify that a new workspace will be created when moving the last workspace. ################################################################################ +is_deeply($x0, [ '1' ], 'only workspace 1 remaining on xinerama-0'); + cmd 'workspace 1'; cmd 'move workspace to output xinerama-1'; ($x0, $x1) = workspaces_per_screen(); -ok('1' ~~ @$x0, 'workspace 1 still on xinerama-0'); +ok('1' ~~ @$x1, 'workspace 1 now on xinerama-1'); +is_deeply($x0, [ '3' ], 'workspace 2 created on xinerama-0'); ################################################################################ # Verify that 'move workspace to output ' works