tests: rename files (00x-*.t is basic stuff, >=100-*.t are tests using IPC)
This commit is contained in:
41
testcases/t/127-regress-floating-parent.t
Normal file
41
testcases/t/127-regress-floating-parent.t
Normal file
@ -0,0 +1,41 @@
|
||||
#!perl
|
||||
# vim:ts=4:sw=4:expandtab
|
||||
#
|
||||
# Regression: make a container floating, kill its parent, make it tiling again
|
||||
#
|
||||
use i3test;
|
||||
|
||||
my $tmp = fresh_workspace;
|
||||
|
||||
cmd 'open';
|
||||
my $left = get_focused($tmp);
|
||||
cmd 'open';
|
||||
my $old = get_focused($tmp);
|
||||
cmd 'split v';
|
||||
cmd 'open';
|
||||
my $floating = get_focused($tmp);
|
||||
diag("focused floating: " . get_focused($tmp));
|
||||
cmd 'mode toggle';
|
||||
# TODO: eliminate this race conditition
|
||||
sleep 1;
|
||||
|
||||
# kill old container
|
||||
cmd qq|[con_id="$old"] focus|;
|
||||
is(get_focused($tmp), $old, 'old container focused');
|
||||
cmd 'kill';
|
||||
|
||||
# kill left container
|
||||
cmd qq|[con_id="$left"] focus|;
|
||||
is(get_focused($tmp), $left, 'old container focused');
|
||||
cmd 'kill';
|
||||
|
||||
# focus floating window, make it tiling again
|
||||
cmd qq|[con_id="$floating"] focus|;
|
||||
is(get_focused($tmp), $floating, 'floating window focused');
|
||||
|
||||
sleep 1;
|
||||
cmd 'mode toggle';
|
||||
|
||||
does_i3_live;
|
||||
|
||||
done_testing;
|
Reference in New Issue
Block a user