From: Michael Stapelberg Date: Wed, 9 May 2012 18:33:41 +0000 (+0200) Subject: tests: add test to verify workspace_auto_back_and_forth works with 'workspace number' X-Git-Tag: 4.3~228^2^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ec4dddb608c467603470ad587d93d8903292497a;p=i3%2Fi3 tests: add test to verify workspace_auto_back_and_forth works with 'workspace number' --- diff --git a/testcases/t/176-workspace-baf.t b/testcases/t/176-workspace-baf.t index f01a2bc7..80b2d471 100644 --- a/testcases/t/176-workspace-baf.t +++ b/testcases/t/176-workspace-baf.t @@ -59,6 +59,20 @@ ok(get_ws($third_ws)->{focused}, 'third workspace focused'); cmd qq|workspace "$third_ws"|; ok(get_ws($second_ws)->{focused}, 'second workspace focused'); +################################################################################ +# Now see if "workspace number " also works as expected with +# workspace_auto_back_and_forth enabled. +################################################################################ + +cmd 'workspace number 5'; +ok(get_ws('5')->{focused}, 'workspace 5 focused'); + +cmd 'workspace number 6'; +ok(get_ws('6')->{focused}, 'workspace 6 focused'); + +cmd 'workspace number 6'; +ok(get_ws('5')->{focused}, 'workspace 5 focused again'); + exit_gracefully($pid); done_testing;