]> git.sur5r.net Git - i3/i3/blobdiff - testcases/t/08-focus-stack.t
tests: lib/i3test: Remove open_standard_window, introduce open_window
[i3/i3] / testcases / t / 08-focus-stack.t
index 33a5884a2fc24d85b5336ecc6a6f8f1dcc12eb8b..b5be284c3b0cbde3eedc9b6387643a490100d06c 100644 (file)
@@ -7,28 +7,23 @@ use i3test;
 
 my $x = X11::XCB::Connection->new;
 
-my $i3 = i3(get_socket_path());
 fresh_workspace;
 
 cmd 'split h';
-my $tiled_left = open_standard_window($x);
-my $tiled_right = open_standard_window($x);
-
-sync_with_i3($x);
+my $tiled_left = open_window($x);
+my $tiled_right = open_window($x);
 
 # Get input focus before creating the floating window
 my $focus = $x->input_focus;
 
 # Create a floating window which is smaller than the minimum enforced size of i3
-my $window = open_standard_window($x, undef, 1);
-sync_with_i3($x);
+my $window = open_floating_window($x);
 
 is($x->input_focus, $window->id, 'floating window focused');
 
 $window->unmap;
 
-# TODO: wait for unmap
-sync_with_i3($x);
+wait_for_unmap($x);
 
 is($x->input_focus, $focus, 'Focus correctly restored');