]> git.sur5r.net Git - i3/i3/commitdiff
t/506-focus-right: also verify that focus up/down is a no-op (Thanks swh)
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 22 Sep 2012 15:30:44 +0000 (17:30 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 22 Sep 2012 15:30:44 +0000 (17:30 +0200)
testcases/t/506-focus-right.t

index 1b8be06ddeae06ed7fdcec853db3b9d8cb03c70f..3f58b00c2950baf697e6fc9dc737241ebd9330b7 100644 (file)
@@ -57,12 +57,17 @@ sub test_focus_left_right {
     is($x->input_focus, $right_win->id, 'right window focused (wrapping)');
 
     ############################################################################
-    # Ensure that moving down from S0 doesn’t crash i3.
+    # Ensure that moving down/up from S0 doesn’t crash i3 and is a no-op.
     ############################################################################
 
     my $second = fresh_workspace(output => 1);
+    my $third_win = open_window;
 
     cmd "focus output down";
+    is($x->input_focus, $third_win->id, 'right window still focused');
+
+    cmd "focus output up";
+    is($x->input_focus, $third_win->id, 'right window still focused');
 
     does_i3_live;