gri3-wm/testcases/t
Michael Stapelberg d641e1da3b Don’t force wrapping when focusing in a direction would work (+test)
Think of the following layout:

 -------------
 | tab |     |
 | con | win |
 |     |     |
 -------------

The tabbed container on the left has two children. Assume you have focused the
second/right child in the tabbed container. i3 used to focus the first/left
container of the tabbed container when using 'focus right' (it wrapped focus).

With this commit, the default behaviour is to instead focus the window on the
right of the screen.

The intention is to make focus switching more intuitive, especially with tabbed
containers supporting 'focus left'/'focus right' in tree. You should end up
using less 'focus parent' :).

You can force the old behaviour with 'force_focus_wrapping true' in your
config.

Code coverage is 62.5% with this commit.
2011-06-12 12:56:50 +02:00
..
lib tests: use Test:Most instead of Test:More 2011-05-25 20:15:52 +02:00
00-load.t Add testcases :-) 2009-07-16 13:43:43 +02:00
01-tile.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
02-fullscreen.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
03-unmanaged.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
04-floating.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
05-ipc.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
06-focus.t CONFIG BREAK: kick the 'next'/'prev' commands, introduce 'focus left' etc. 2011-06-08 20:49:49 +02:00
07-move.t Update testcases (and skip some tests for the moment) 2010-06-02 23:53:22 +02:00
08-focus-stack.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
09-stacking.t Update testcases (and skip some tests for the moment) 2010-06-02 23:53:22 +02:00
10-dock.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
11-goto.t Parse multiple criteria in commands (+test), better error message for 'focus' 2011-06-08 23:34:08 +02:00
12-floating-resize.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
13-urgent.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
14-client-leader.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
15-ipc-workspaces.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
16-nestedcons.t ipc: make 'layout' a string 2011-06-02 17:12:18 +02:00
17-workspace.t Implement 'workspace next/prev' (+test) 2011-06-10 16:03:59 +02:00
18-openkill.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
19-match.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
20-multiple-cmds.t Bugfix: Correct string/quoted string parsing for the commands exec, workspace, nop, restore and mark (Thanks SardemFF7) 2011-05-12 07:09:06 +02:00
21-next-prev.t CONFIG BREAK: kick the 'next'/'prev' commands, introduce 'focus left' etc. 2011-06-08 20:49:49 +02:00
22-split.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
24-move.t BREAKS CONFIG: rename 'level up' to 'focus parent' 2011-06-10 01:36:33 +02:00
26-regress-close.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
27-regress-floating-parent.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
28-open-order.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
29-focus-after-close.t BREAKS CONFIG: rename 'level up' to 'focus parent' 2011-06-10 01:36:33 +02:00
30-close-empty-split.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
31-stacking-order.t BREAKS CONFIG: rename 'level up' to 'focus parent' 2011-06-10 01:36:33 +02:00
32-move-workspace.t CONFIG BREAK: rename 'mode floating/tiling' to 'floating enable/disable' 2011-06-10 02:06:47 +02:00
33-size-hints.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
34-invalid-command.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
35-floating-focus.t testcase: correct window names (trivial) 2011-05-29 13:20:41 +02:00
36-floating-ws-empty.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
37-floating-unmap.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
38-floating-attach.t Bugfix: Attach new cons at the correct place when a floating con is focused (+test) (Thanks fernandotcl) 2011-05-13 21:30:37 +02:00
39-ws-numbers.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
40-focus-lost.t CONFIG BREAK: kick the 'next'/'prev' commands, introduce 'focus left' etc. 2011-06-08 20:49:49 +02:00
41-resize.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
42-regress-move-floating.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
43-regress-floating-restart.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
44-regress-floating-resize.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
45-flattening.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
46-floating-reinsert.t CONFIG BREAK: rename 'mode floating/tiling' to 'floating enable/disable' 2011-06-10 02:06:47 +02:00
47-regress-floatingmove.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
48-regress-floatingmovews.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
50-regress-dock-restart.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
51-regress-float-size.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
52-regress-level-up.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
53-floating-originalsize.t CONFIG BREAK: rename 'mode floating/tiling' to 'floating enable/disable' 2011-06-10 02:06:47 +02:00
54-regress-multiple-dock.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
55-floating-split-size.t CONFIG BREAK: rename 'mode floating/tiling' to 'floating enable/disable' 2011-06-10 02:06:47 +02:00
56-fullscreen-focus.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
57-regress-fullscreen-level-up.t tests: clean up/beautify all tests (code style / test style) 2011-03-09 20:25:17 +01:00
58-wm_take_focus.t tests: explicitly declare done_testing in subtest 2011-05-25 20:16:14 +02:00
59-socketpaths.t tests: make t/59-socketpaths exit gracefully 2011-05-24 22:31:50 +02:00
61-regress-borders-restart.t Bugfix: Restore border_style when restarting inplace (Thanks aniou) 2011-05-11 20:45:56 +02:00
62-regress-dock-urgent.t Bugfix: Don’t crash when dock clients set the urgency hint (+testcase) 2011-05-11 22:45:20 +02:00
63-wm-state.t Bugfix: set WM_STATE to WITHDRAWN when an app unmaps their window(s) (+test) 2011-05-13 17:04:55 +02:00
64-kill-win-vs-client.t Argument for 'kill' for killing a specific window (now default) or the whole client (+test) 2011-05-13 20:41:03 +02:00
65-for_window.t fix typo in t/65-for_window.t 2011-05-24 22:56:06 +02:00
66-assign.t tests: add test for the 'assign' feature 2011-05-24 22:56:28 +02:00
67-workspace_layout.t BREAKS CONFIG: rename 'level up' to 'focus parent' 2011-06-10 01:36:33 +02:00
68-regress-fullscreen-restart.t add testcase for the fullscreen restart problem of the previous commit 2011-06-03 02:05:34 +02:00
69-border-toggle.t Implement 'border toggle' (+test) 2011-06-10 16:15:52 +02:00
70-force_focus_wrapping.t Don’t force wrapping when focusing in a direction would work (+test) 2011-06-12 12:56:50 +02:00