]> git.sur5r.net Git - i3/i3/blobdiff - testcases/t/232-cmd-move-criteria.t
added "toggle" option to "split" command
[i3/i3] / testcases / t / 232-cmd-move-criteria.t
index 48a51d56d0bdede853e8bf188fa956cc2c227d45..787f72b3285fc4cc4915ce487bc3db7e9ac34a8d 100644 (file)
 # Bug still in: 4.8-16-g6888a1f
 use i3test;
 
+my ($ws, $win1, $win2, $win3, $ws_con);
+
 ###############################################################################
 # Tets moving with 'id' criterion.
 ###############################################################################
 
-my $ws = fresh_workspace;
+$ws = fresh_workspace;
 
-my $win1 = open_window;
-my $win2 = open_window;
-my $win3 = open_window;
+$win1 = open_window;
+$win2 = open_window;
+$win3 = open_window;
 
 # move win1 from the left to the right
 cmd '[id="' . $win1->{id} . '"] move right';
 
 # now they should be switched, with win2 still being focused
-my $ws_con = get_ws($ws);
+$ws_con = get_ws($ws);
 
 # win2 should be on the left
 is($ws_con->{nodes}[0]->{window}, $win2->{id}, 'the `move [direction]` command should work with criteria');
@@ -52,7 +54,8 @@ my %window_types = (
     'menu'          => '_NET_WM_WINDOW_TYPE_MENU',
     'dropdown_menu' => '_NET_WM_WINDOW_TYPE_DROPDOWN_MENU',
     'popup_menu'    => '_NET_WM_WINDOW_TYPE_POPUP_MENU',
-    'tooltip'       => '_NET_WM_WINDOW_TYPE_TOOLTIP'
+    'tooltip'       => '_NET_WM_WINDOW_TYPE_TOOLTIP',
+    'notification'  => '_NET_WM_WINDOW_TYPE_NOTIFICATION'
 );
 
 while (my ($window_type, $atom) = each %window_types) {