From: Michael Stapelberg Date: Wed, 9 May 2012 18:33:11 +0000 (+0200) Subject: tests: Check that 'workspace number ' opens a new workspace X-Git-Tag: 4.3~228^2^2~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=82e0eaa31598664ad48ea449369d6b85e175d317;p=i3%2Fi3 tests: Check that 'workspace number ' opens a new workspace --- diff --git a/testcases/t/117-workspace.t b/testcases/t/117-workspace.t index 6c9fc6e1..1d8888c7 100644 --- a/testcases/t/117-workspace.t +++ b/testcases/t/117-workspace.t @@ -134,6 +134,15 @@ cmd 'workspace number 4'; is(focused_ws(), '4: foo', 'now on workspace 4: foo'); ok(!workspace_exists('4'), 'workspace 4 still does not exist'); +################################################################################ +# Check that we "workspace number 5" will create workspace 5 if it does not yet +# exist. +################################################################################ + +ok(!workspace_exists('5'), 'workspace 5 does not exist'); +cmd 'workspace number 5'; +ok(workspace_exists('5'), 'workspace 5 was created'); + ################################################################################ # Verify that renaming workspaces works. ################################################################################