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 to check if borders are correctly restored after an inplace
19 # found in eb8ad348b28e243cba1972e802ca8ee636472fc9
21 use List::Util qw(first);
24 my $i3 = i3(get_socket_path());
25 my $tmp = fresh_workspace;
26 my $window = open_window;
28 sub get_border_style {
29 my @content = @{get_ws_content($tmp)};
30 my $wininfo = first { $_->{window} == $window->id } @content;
32 return $wininfo->{border};
35 is(get_border_style(), 'normal', 'border style normal');
39 is(get_border_style(), 'pixel', 'border style 1pixel after changing');
41 # perform an inplace-restart
46 is(get_border_style(), 'pixel', 'border style still 1pixel after restart');