]> git.sur5r.net Git - i3/i3/blob - testcases/t/148-regress-floatingmovews.t
testcases: drop open_window()s $x parameter, use global one instead
[i3/i3] / testcases / t / 148-regress-floatingmovews.t
1 #!perl
2 # vim:ts=4:sw=4:expandtab
3 #
4 # Regression test for correct focus behaviour when moving a floating con to
5 # another workspace.
6 #
7 use i3test;
8
9 my $tmp = fresh_workspace;
10
11 # open a tiling window on the first workspace
12 open_window;
13 #sleep 0.25;
14 my $first = get_focused($tmp);
15
16 # on a different ws, open a floating window
17 my $otmp = fresh_workspace;
18 open_window;
19 #sleep 0.25;
20 my $float = get_focused($otmp);
21 cmd 'mode toggle';
22 #sleep 0.25;
23
24 # move the floating con to first workspace
25 cmd "move workspace $tmp";
26 #sleep 0.25;
27
28 # switch to the first ws and check focus
29 is(get_focused($tmp), $float, 'floating client correctly focused');
30
31 done_testing;