X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=testcases%2Ft%2F176-workspace-baf.t;h=01906e4620094c8029860aa3ac43877c0a28462d;hb=b09090fa7d2c8c278181c1b2c9429dcfec6a8b35;hp=8ed33030818343e595db4cfcf9df558ad79b60b8;hpb=0aa306890b66047aacb4863df0cfdfd6f46361e6;p=i3%2Fi3 diff --git a/testcases/t/176-workspace-baf.t b/testcases/t/176-workspace-baf.t index 8ed33030..01906e46 100644 --- a/testcases/t/176-workspace-baf.t +++ b/testcases/t/176-workspace-baf.t @@ -2,13 +2,13 @@ # vim:ts=4:sw=4:expandtab # # Please read the following documents before working on tests: -# • http://build.i3wm.org/docs/testsuite.html +# • https://build.i3wm.org/docs/testsuite.html # (or docs/testsuite) # -# • http://build.i3wm.org/docs/lib-i3test.html +# • https://build.i3wm.org/docs/lib-i3test.html # (alternatively: perldoc ./testcases/lib/i3test.pm) # -# • http://build.i3wm.org/docs/ipc.html +# • https://build.i3wm.org/docs/ipc.html # (or docs/ipc) # # • http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf @@ -146,6 +146,23 @@ is(focused_ws, '6: baz', 'workspace 6 now focused'); cmd 'workspace number 6'; is(focused_ws, '5: foo', 'workspace 5 focused again'); +################################################################################ +# Place a window in the scratchpad, see if BAF works after showing the +# scratchpad window. +################################################################################ + +my $scratchwin = open_window; +cmd 'move scratchpad'; + +# show scratchpad window +cmd 'scratchpad show'; + +# hide scratchpad window +cmd 'scratchpad show'; + +cmd 'workspace back_and_forth'; +is(focused_ws, '6: baz', 'workspace 6 now focused'); + exit_gracefully($pid); done_testing;