2 # vim:ts=4:sw=4:expandtab
4 # Please read the following documents before working on tests:
5 # • http://build.i3wm.org/docs/testsuite.html
8 # • http://build.i3wm.org/docs/lib-i3test.html
9 # (alternatively: perldoc ./testcases/lib/i3test.pm)
11 # • http://build.i3wm.org/docs/ipc.html
14 # • http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf
15 # (unless you are already familiar with Perl)
17 # Regression test: Changing border style should not have an impact on the size
18 # (geometry) of the child window. See ticket http://bugs.i3wm.org/561
19 # Wrong behaviour manifested itself up to (including) commit
20 # d805d1bbeaf89e11f67c981f94c9f55bbb4b89d9
27 my $win = open_floating_window(rect => [10, 10, 200, 100]);
29 my $geometry = $win->rect;
30 is($geometry->{width}, 200, 'width correct');
31 is($geometry->{height}, 100, 'height correct');
35 $geometry = $win->rect;
36 is($geometry->{width}, 200, 'width correct');
37 is($geometry->{height}, 100, 'height correct');