gri3-wm/testcases/t
haptix@web.de e3913093b6 introduced i3 command for changing the hidden state and the mode of i3bar
The hidden_state and mode of each i3bar instance can now be controlled from within i3.
Therefore, two new i3 command were introduced:
    _
    bar hidden_state show|hide|toggle [<bar_id>]

    show: always show the bar
    hide: normal hide mode
    toggle: toggle between show and hide (individually for each bar)
    _
    bar mode dock|hide|invisible|toggle [<bar_id>]

    hide,dock: like before
    invisible: always keep the bar hidden
    toggle: toggle between dock and hide (individually for each bar)

This patch introduces a hidden_state ("hidden_state hide|show") in the
barconfig, which indicates the current hidden_state of each i3bar
instance. It only affects the bar when in hide mode. Additionally, a new
invisible mode was introduced. In order to change the hidden_state or
mode of the bar from i3, a barconfig-update event was introduced, for
which a bar can subscribe and the bar then gets notified about the
currently set hidden_state and mode in its barconfig.

For convenience, an id field ("id <bar_id>") was added to the barconfig, where one can
set the desired id for the corresponding bar. If the id is not specified, i3 will
deterministically choose an id; otherwise, with the previous random approach for finding
a new id, which is actually not shared with i3bar, as it would determine its id on
startup, the event-subscription would be destroyed on reload. Still, this issue remains
when manually changing the bar_id in the config and then reloading.

fixes #833, #651
2013-05-25 23:00:36 +02:00
..
000-load-deps.t tests: 000-load-deps: bail out when dependencies are not found, test more of them 2012-11-13 21:03:44 +01:00
001-tile.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
002-i3-sync.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
003-ipc.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
004-unmanaged.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
005-floating.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
100-fullscreen.t Un-fullscreen as needed when moving fullscreen containers 2012-10-04 17:46:54 +02:00
101-focus.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
102-dock.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
103-move.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
104-focus-stack.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
105-stacking.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
111-goto.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
112-floating-resize.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
113-urgent.t Add support for _NET_WM_STATE_DEMANDS_ATTENTION. 2013-03-09 10:55:13 +01:00
114-client-leader.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
115-ipc-workspaces.t tests: 115-ipc-workspaces: ensure the i3 ipc socket is connected 2012-11-13 21:03:25 +01:00
116-nestedcons.t Replace the discrete 'split' Con property with a simple function. 2012-10-04 17:48:08 +02:00
117-workspace.t introduce new command to rename focused workspace 2012-10-31 09:09:56 +01:00
118-openkill.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
119-match.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
120-multiple-cmds.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
121-next-prev.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
122-split.t Split workspace instead of changing orientation 2013-02-15 03:16:02 +01:00
124-move.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
126-regress-close.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
127-regress-floating-parent.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
128-open-order.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
129-focus-after-close.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
130-close-empty-split.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
131-stacking-order.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
132-move-workspace.t t/132-move-workspace: add missing sync_with_i3 2012-12-27 16:55:22 +01:00
133-size-hints.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
134-invalid-command.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
135-floating-focus.t Skip floating cons in focus (child|parent) and stop them from being split 2012-10-16 20:01:36 +02:00
136-floating-ws-empty.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
137-floating-unmap.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
138-floating-attach.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
139-ws-numbers.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
140-focus-lost.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
141-resize.t Make the resize command honor criteria (Thanks Tblue) 2012-09-28 20:36:25 +02:00
142-regress-move-floating.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
143-regress-floating-restart.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
144-regress-floating-resize.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
145-flattening.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
146-floating-reinsert.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
147-regress-floatingmove.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
148-regress-floatingmovews.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
150-regress-dock-restart.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
151-regress-float-size.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
152-regress-level-up.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
153-floating-originalsize.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
154-regress-multiple-dock.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
155-floating-split-size.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
156-fullscreen-focus.t Allow 'focus $dir' to move out of non-global fullscreen containers 2012-10-09 21:26:49 +02:00
158-wm_take_focus.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
159-socketpaths.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
161-regress-borders-restart.t Implement variable border widths for pixel/normal 2012-09-24 22:20:29 +02:00
162-regress-dock-urgent.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
163-wm-state.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
164-kill-win-vs-client.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
165-for_window.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
166-assign.t t/166-assign: sync after mapping the window 2012-12-26 22:04:35 +01:00
167-workspace_layout.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
168-regress-fullscreen-restart.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
169-border-toggle.t Fix 'border toggle' (it "skipped" 1px border) (Thanks joepd) 2012-09-28 19:29:14 +02:00
170-force_focus_wrapping.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
171-config-migrate.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
172-start-on-named-ws.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
173-get-marks.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
173-regress-focus-assign.t t/173-regress-focus-assign: sync after mapping the window 2012-12-26 22:04:15 +01:00
174-border-config.t Implement variable border widths for pixel/normal 2012-09-24 22:20:29 +02:00
174-regress-focus-toggle.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
175-startup-notification.t t/175-startup-notification: use the testcases X11 connection 2012-12-27 18:02:23 +01:00
176-workspace-baf.t Merge branch 'master' into next 2012-11-10 09:01:24 +01:00
177-bar-config.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
178-regress-workspace-open.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
179-regress-multiple-ws.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
180-fd-leaks.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
181-regress-float-border.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
182-regress-focus-dock.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
183-config-variables.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
184-regress-float-split-resize.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
185-scratchpad.t Always auto center on 'scratchpad show' if window hasn't been repositioned by the user 2013-02-18 10:38:28 +01:00
186-regress-assign-focus-parent.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
187-commands-parser.t introduced i3 command for changing the hidden state and the mode of i3bar 2013-05-25 23:00:36 +02:00
188-regress-focus-restart.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
189-floating-constraints.t t/189-floating-constraints: sync before getting window rects 2012-12-26 22:03:37 +01:00
190-scratchpad-diff-ws.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
191-resize-levels.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
192-layout.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
193-ipc-version.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
194-regress-floating-size.t Bugfix: fix floating window size with hide_edge_borders (+test) 2013-04-02 23:59:26 +02:00
195-net-active-window.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
196-randr-output-names.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
197-regression-move-vanish.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
198-regression-scratchpad-crash.t tests: add missing boilerplate 2012-09-22 12:56:01 +02:00
199-ipc-mode-event.t tests: add testcase for the 'mode' IPC event 2012-09-22 13:20:53 +02:00
200-urgency-timer.t Bugfix: Correctly clear the urgency hint when the window is underneath a split-con (+test) 2012-09-25 15:40:08 +02:00
201-config-parser.t introduced i3 command for changing the hidden state and the mode of i3bar 2013-05-25 23:00:36 +02:00
202-scratchpad-criteria.t Fix scratchpad_show 2013-03-27 21:51:13 +01:00
203-regress-assign-and-move.t Bugfix: Fix for_window moving of assigned windows (Thanks bafain) 2013-01-01 16:31:08 +01:00
204-regress-scratchpad-move.t scratchpad: fix crash when moving last window of an invisible workspace (+test) (Thanks bafain) 2013-01-25 15:28:58 +01:00
205-ipc-windows.t make t/205-ipc-windows require AnyEvent::I3 >= 0.15 2013-02-18 10:59:32 +01:00
206-fullscreen-scratchpad.t Fix problem when moving fullscreen window to scratchpad 2013-05-25 22:59:27 +02:00
500-multi-monitor.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
501-scratchpad.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
502-focus-output.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
503-workspace.t t/503-workspace: sync after switching focus to a different output 2012-12-26 22:02:43 +01:00
504-move-workspace-to-output.t update tests to test the output wrapping 2013-01-26 19:08:41 +01:00
505-scratchpad-resolution.t add boilerplate to all testcases with documentation references 2012-09-10 14:09:01 +02:00
506-focus-right.t t/506-focus-right: also verify that focus up/down is a no-op (Thanks swh) 2012-09-22 17:30:44 +02:00
507-workspace-move-crash.t Bugfix: with one ws per output, don’t crash on cross-output moves (Thanks moju) 2012-09-28 23:04:37 +02:00
509-workspace_layout.t set workspace_layout in create_workspace_on_output 2012-10-03 15:08:21 +02:00
510-focus-across-outputs.t t/510-focus-across-outputs: fix sync order 2012-12-26 22:03:02 +01:00
511-scratchpad-configure-request.t Bugfix: Ignore ConfigureRequests for scratchpad windows (Thanks MeanEYE) 2012-12-22 14:08:11 +01:00
512-move-wraps.t Bugfix: Do not move focus if a container is moved across outputs 2013-02-10 17:38:17 +01:00
513-move-workspace.t Bugfix: Do not move focus if a container is moved across outputs 2013-02-10 17:38:17 +01:00
514-ipc-workspace-multi-monitor.t add testcase for the workspace-focus ipc event 2013-04-02 22:27:04 +02:00