2 # vim:ts=4:sw=4:expandtab
4 # Regression test to check if borders are correctly restored after an inplace
6 # found in eb8ad348b28e243cba1972e802ca8ee636472fc9
8 use List::Util qw(first);
11 my $i3 = i3(get_socket_path());
12 my $tmp = fresh_workspace;
13 my $window = open_window;
15 sub get_border_style {
16 my @content = @{get_ws_content($tmp)};
17 my $wininfo = first { $_->{window} == $window->id } @content;
19 return $wininfo->{border};
22 is(get_border_style(), 'normal', 'border style normal');
26 is(get_border_style(), '1pixel', 'border style 1pixel after changing');
28 # perform an inplace-restart
33 is(get_border_style(), '1pixel', 'border style still 1pixel after restart');