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:
Michael Stapelberg
2011-09-24 15:11:37 +01:00
parent c3eb9f6c45
commit de5286da59
38 changed files with 207 additions and 386 deletions

View File

@ -30,7 +30,7 @@ check_order('workspace order alright before testing');
cmd "workspace 93";
open_standard_window($x);
open_window($x);
my @ws = @{$i3->get_workspaces->recv};
my @f = grep { defined($_->{num}) && $_->{num} == 93 } @ws;
@ -38,23 +38,23 @@ is(@f, 1, 'ws 93 found by num');
check_order('workspace order alright after opening 93');
cmd "workspace 92";
open_standard_window($x);
open_window($x);
check_order('workspace order alright after opening 92');
cmd "workspace 94";
open_standard_window($x);
open_window($x);
check_order('workspace order alright after opening 94');
cmd "workspace 96";
open_standard_window($x);
open_window($x);
check_order('workspace order alright after opening 96');
cmd "workspace foo";
open_standard_window($x);
open_window($x);
check_order('workspace order alright after opening foo');
cmd "workspace 91";
open_standard_window($x);
open_window($x);
check_order('workspace order alright after opening 91');
done_testing;