gri3-wm/testcases/t
Michael Stapelberg de94f6da1a Introduce splith/splitv layouts, remove orientation
With this commit, the "default" layout is replaced by the splith and
splitv layouts. splith is equivalent to default with orientation
horizontal and splitv is equivalent to default with orientation
vertical.

The "split h" and "split v" commands continue to work as before, they
split the current container and you will end up in a split container
with layout splith (after "split h") or splitv (after "split v").

To change a splith container into a splitv container, use either "layout
splitv" or "layout toggle split". The latter command is used in the
default config as mod+l (previously "layout default"). In case you have
"layout default" in your config file, it is recommended to just replace
it by "layout toggle split", which will work as "layout default" did
before when pressing it once, but toggle between horizontal/vertical
when pressing it repeatedly.

The rationale behind this commit is that it’s cleaner to have all
parameters that influence how windows are rendered in the layout itself
rather than having a special parameter in combination with only one
layout. This enables us to change existing split containers in all cases
without breaking existing features (see ticket #464). Also, users should
feel more confident about whether they are actually splitting or just
changing an existing split container now.

As a nice side-effect, this commit brings back the "layout toggle"
feature we once had in i3 version 3 (see the userguide).

AFAIK, it is safe to use in-place restart to upgrade into versions
after this commit (switching to an older version will break your layout,
though).

Fixes #464
2012-08-04 03:13:24 +02:00
..
000-load-deps.t tests: rename files (00x-*.t is basic stuff, >=100-*.t are tests using IPC) 2011-10-08 14:38:50 +01:00
001-tile.t testcases: use open_window everywhere 2011-11-23 20:33:44 +00:00
002-i3-sync.t testcases: drop sync_with_i3()s $x parameter, use global 2011-11-23 00:02:50 +00:00
003-ipc.t testcases: drop sync_with_i3()s $x parameter, use global 2011-11-23 00:02:50 +00:00
004-unmanaged.t testcases: use open_window everywhere 2011-11-23 20:33:44 +00:00
005-floating.t Merge branch 'master' into next 2012-01-21 14:22:29 +00:00
100-fullscreen.t Replace the old fullscreen container when requesting fullscreen 2012-04-08 17:53:37 +02:00
101-focus.t testcases: don't sync_with_i3() before $x->input_focus 2011-11-23 00:02:54 +00:00
102-dock.t testcases: drop sync_with_i3()s $x parameter, use global 2011-11-23 00:02:50 +00:00
103-move.t testcases: correctly enable lexical pragmata 2011-11-21 23:50:39 +00:00
104-focus-stack.t testcases: drop open_floating_window()s $x parameter, use global 2011-11-23 00:02:47 +00:00
105-stacking.t testcases: correctly enable lexical pragmata 2011-11-21 23:50:39 +00:00
111-goto.t Merge branch 'master' into next 2011-12-17 14:22:57 +00:00
112-floating-resize.t Merge branch 'master' into next 2011-12-17 17:16:39 +00:00
113-urgent.t Use gettimeofday() and struct timevals instead of time() 2012-02-21 13:38:49 +01:00
114-client-leader.t testcases: drop open_floating_window()s $x parameter, use global 2011-11-23 00:02:47 +00:00
115-ipc-workspaces.t tests: rename files (00x-*.t is basic stuff, >=100-*.t are tests using IPC) 2011-10-08 14:38:50 +01:00
116-nestedcons.t Introduce splith/splitv layouts, remove orientation 2012-08-04 03:13:24 +02:00
117-workspace.t tests: Check that 'workspace number <number>' opens a new workspace 2012-05-09 20:33:11 +02:00
118-openkill.t tests: rename files (00x-*.t is basic stuff, >=100-*.t are tests using IPC) 2011-10-08 14:38:50 +01:00
119-match.t testcases: use open_window everywhere 2011-11-23 20:33:44 +00:00
120-multiple-cmds.t Send proper error messages upon parser failures, use yajl for generating command replies 2012-05-02 22:01:50 +02:00
121-next-prev.t tests: rename files (00x-*.t is basic stuff, >=100-*.t are tests using IPC) 2011-10-08 14:38:50 +01:00
122-split.t Introduce splith/splitv layouts, remove orientation 2012-08-04 03:13:24 +02:00
124-move.t Extends move command for floating windows 2012-03-25 11:06:49 +02:00
126-regress-close.t tests: rename files (00x-*.t is basic stuff, >=100-*.t are tests using IPC) 2011-10-08 14:38:50 +01:00
127-regress-floating-parent.t testcases: replace sleep with sync_with_i3 where appropiate 2011-11-23 20:33:44 +00:00
128-open-order.t testcases: correctly enable lexical pragmata 2011-11-21 23:50:39 +00:00
129-focus-after-close.t testcases: replace sleep with sync_with_i3 where appropiate 2011-11-23 20:33:44 +00:00
130-close-empty-split.t Get rid of references to level up/down. 2012-05-28 23:37:15 +02:00
131-stacking-order.t tests: rename files (00x-*.t is basic stuff, >=100-*.t are tests using IPC) 2011-10-08 14:38:50 +01:00
132-move-workspace.t Add a new command 'move to workspace current' 2012-06-03 19:42:56 +02:00
133-size-hints.t testcases: drop sync_with_i3()s $x parameter, use global 2011-11-23 00:02:50 +00:00
134-invalid-command.t tests: rename files (00x-*.t is basic stuff, >=100-*.t are tests using IPC) 2011-10-08 14:38:50 +01:00
135-floating-focus.t testcases: don't sync_with_i3() before $x->input_focus 2011-11-23 00:02:54 +00:00
136-floating-ws-empty.t Merge branch 'master' into next 2011-12-20 18:44:26 +00:00
137-floating-unmap.t testcases: drop sync_with_i3()s $x parameter, use global 2011-11-23 00:02:50 +00:00
138-floating-attach.t testcases: drop open_floating_window()s $x parameter, use global 2011-11-23 00:02:47 +00:00
139-ws-numbers.t testcases: use Test::More is_deeply, don't depend on Test::Deep 2011-11-23 00:02:57 +00:00
140-focus-lost.t testcases: use Test::More is_deeply, don't depend on Test::Deep 2011-11-23 00:02:57 +00:00
141-resize.t t/141-resize.t: do not compare float values directly. use i3test.pm::cmp_float which compares using precision of 1e-6. 2012-05-05 19:15:43 +02:00
142-regress-move-floating.t tests: rename files (00x-*.t is basic stuff, >=100-*.t are tests using IPC) 2011-10-08 14:38:50 +01:00
143-regress-floating-restart.t make in-place restarts use socket activation, too (for faster/less flaky tests) 2012-01-21 23:03:09 +00:00
144-regress-floating-resize.t testcases: t/144-*: use open_window instead of launching urxvt 2011-11-23 20:33:44 +00:00
145-flattening.t Introduce splith/splitv layouts, remove orientation 2012-08-04 03:13:24 +02:00
146-floating-reinsert.t testcases: drop open_floating_window()s $x parameter, use global 2011-11-23 00:02:47 +00:00
147-regress-floatingmove.t Get rid of references to level up/down. 2012-05-28 23:37:15 +02:00
148-regress-floatingmovews.t testcases: replace sleep with sync_with_i3 where appropiate 2011-11-23 20:33:44 +00:00
150-regress-dock-restart.t make in-place restarts use socket activation, too (for faster/less flaky tests) 2012-01-21 23:03:09 +00:00
151-regress-float-size.t tests: rename files (00x-*.t is basic stuff, >=100-*.t are tests using IPC) 2011-10-08 14:38:50 +01:00
152-regress-level-up.t Get rid of references to level up/down. 2012-05-28 23:37:15 +02:00
153-floating-originalsize.t testcases: drop sync_with_i3()s $x parameter, use global 2011-11-23 00:02:50 +00:00
154-regress-multiple-dock.t testcases: drop open_window()s $x parameter, use global one instead 2011-11-21 23:51:04 +00:00
155-floating-split-size.t testcases: drop open_window()s $x parameter, use global one instead 2011-11-21 23:51:04 +00:00
156-fullscreen-focus.t Restrict "move to workspace" commands in fullscreen. 2012-06-03 16:24:53 +02:00
158-wm_take_focus.t t/158-wm_take_focus: use sync_with_i3 instead of a timeout 2012-02-21 14:37:55 +01:00
159-socketpaths.t tests: make t/159-socketpath more robust 2012-06-29 21:23:28 +02:00
161-regress-borders-restart.t make in-place restarts use socket activation, too (for faster/less flaky tests) 2012-01-21 23:03:09 +00:00
162-regress-dock-urgent.t testcases: use open_window everywhere 2011-11-23 20:33:44 +00:00
163-wm-state.t testcases: don't sync_with_i3() before $x->input_focus 2011-11-23 00:02:54 +00:00
164-kill-win-vs-client.t t/164-kill-win-vs-client: get rid of sleep()s 2012-02-21 14:28:37 +01:00
165-for_window.t testcases: always start i3 through i3test::launch_with_config 2011-12-04 14:14:20 +01:00
166-assign.t tests: t/166-assign.t: use wait_for_window 2012-06-29 23:20:46 +02:00
167-workspace_layout.t Merge branch 'master' into next 2012-02-07 17:41:36 -05:00
168-regress-fullscreen-restart.t make in-place restarts use socket activation, too (for faster/less flaky tests) 2012-01-21 23:03:09 +00:00
169-border-toggle.t tests: rename files (00x-*.t is basic stuff, >=100-*.t are tests using IPC) 2011-10-08 14:38:50 +01:00
170-force_focus_wrapping.t testcases: always start i3 through i3test::launch_with_config 2011-12-04 14:14:20 +01:00
171-config-migrate.t t/171-config-migrate: shave off a bit of time by consolidating migrate_config calls 2012-02-21 14:11:04 +01:00
172-start-on-named-ws.t testcases: always start i3 through i3test::launch_with_config 2011-12-04 14:14:20 +01:00
173-get-marks.t Merge branch 'master' into next 2011-12-17 14:22:57 +00:00
173-regress-focus-assign.t tests: don’t wait for window map event in open_special 2012-02-21 13:40:53 +01:00
174-border-config.t testcases: always start i3 through i3test::launch_with_config 2011-12-04 14:14:20 +01:00
174-regress-focus-toggle.t tests: rename files (00x-*.t is basic stuff, >=100-*.t are tests using IPC) 2011-10-08 14:38:50 +01:00
175-startup-notification.t testcases: drop sync_with_i3()s $x parameter, use global 2011-11-23 00:02:50 +00:00
176-workspace-baf.t tests: add test to verify workspace_auto_back_and_forth works with 'workspace number' 2012-05-09 20:33:41 +02:00
177-bar-config.t handle the old bar color config syntax in a backwards-compatible way 2012-01-20 22:26:17 +00:00
178-regress-workspace-open.t Close empty workspaces if they're not visible. 2011-10-24 00:12:14 +01:00
179-regress-multiple-ws.t Bugfix: Correctly return to initial state after prev/next/back_and_forth (Thanks Brian) 2011-11-10 18:42:24 +00:00
180-fd-leaks.t tests: add t/180-fd-leaks to ensure i3 does not leak fds on exec 2011-11-20 10:52:21 +00:00
181-regress-float-border.t tests: add test for ticket #561 (floating window size when changing border) 2011-11-26 21:20:00 +00:00
182-regress-focus-dock.t Bugfix: Fix crash on '[class="i3bar"] focus' (+test) (Thanks f8l) 2011-11-26 22:17:34 +00:00
183-config-variables.t tests: add test for previous commit 2011-12-17 11:18:43 +00:00
184-regress-float-split-resize.t Bugfix: Fix floating resize for floating split containers (+test) 2011-12-18 15:18:20 +00:00
185-scratchpad.t make in-place restarts use socket activation, too (for faster/less flaky tests) 2012-01-21 23:03:09 +00:00
186-regress-assign-focus-parent.t Bugfix: Open new windows in the correct place when assignments match (+test) (Thanks Don) 2012-01-07 18:50:00 +00:00
187-commands-parser.t Display i3-nagbar when commands lead to an error 2012-08-02 17:45:09 +02:00
188-regress-focus-restart.t make in-place restarts use socket activation, too (for faster/less flaky tests) 2012-01-21 23:03:09 +00:00
189-floating-constraints.t tests: add a testcase for the floating size constraints 2012-02-16 18:43:47 +00:00
190-scratchpad-diff-ws.t add a testcase for the previous commit 2012-04-05 18:12:24 +02:00
191-resize-levels.t resizing: traverse containers up properly (+test) (Thanks oblique) 2012-07-22 21:37:26 +02:00
192-layout.t Introduce splith/splitv layouts, remove orientation 2012-08-04 03:13:24 +02:00
500-multi-monitor.t Implement fake-outputs option (cmdline, cfg) for multi-monitor testing 2012-04-09 14:28:36 +02:00
501-scratchpad.t Implement fake-outputs option (cmdline, cfg) for multi-monitor testing 2012-04-09 14:28:36 +02:00
502-focus-output.t tests: warp the pointer to in multi-monitor tests to avoid flaky tests 2012-04-09 14:48:57 +02:00
503-workspace.t tests: warp the pointer to in multi-monitor tests to avoid flaky tests 2012-04-09 14:48:57 +02:00
504-move-workspace-to-output.t tests: t/504: ensure cursor position 2012-06-29 23:21:32 +02:00