From: Michael Stapelberg Date: Wed, 15 Feb 2012 18:02:02 +0000 (+0000) Subject: tests: make t/504-move-workspace-to-output consistent with the previous commit X-Git-Tag: 4.2~76 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6d0dcf06ef90b87f5579aebfdc4ae950869e0fcd;p=i3%2Fi3 tests: make t/504-move-workspace-to-output consistent with the previous commit --- 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