]> git.sur5r.net Git - i3/i3/commitdiff
tests: add test to verify workspace_auto_back_and_forth works with 'workspace number'
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 9 May 2012 18:33:41 +0000 (20:33 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 9 May 2012 18:33:41 +0000 (20:33 +0200)
testcases/t/176-workspace-baf.t

index f01a2bc7a90d3e2be0c116e0e7632f919f38f805..80b2d47135aad5ef6e668001b9489de07a9501c7 100644 (file)
@@ -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 <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;