tests: lib/i3test: Remove open_standard_window, introduce open_window
open_window has a better API than open_standard_window. It uses named parameters and supplies default values for everything you don’t specify. This way, you can use every feature which X11::XCB::Window supports.
This commit is contained in:
@ -14,8 +14,8 @@ my $tmp = fresh_workspace;
|
||||
|
||||
cmd 'split v';
|
||||
|
||||
my $top = open_standard_window($x);
|
||||
my $bottom = open_standard_window($x);
|
||||
my $top = open_window($x);
|
||||
my $bottom = open_window($x);
|
||||
|
||||
sync_with_i3($x);
|
||||
|
||||
@ -54,8 +54,8 @@ $tmp = fresh_workspace;
|
||||
|
||||
cmd 'split v';
|
||||
|
||||
$top = open_standard_window($x);
|
||||
$bottom = open_standard_window($x);
|
||||
$top = open_window($x);
|
||||
$bottom = open_window($x);
|
||||
|
||||
cmd 'split h';
|
||||
cmd 'layout stacked';
|
||||
@ -76,7 +76,7 @@ is($nodes->[1]->{percent}, 0.75, 'bottom window got 75%');
|
||||
|
||||
$tmp = fresh_workspace;
|
||||
|
||||
$top = open_standard_window($x);
|
||||
$top = open_window($x);
|
||||
|
||||
cmd 'floating enable';
|
||||
|
||||
|
Reference in New Issue
Block a user