Thibault Jouan
26bac5aea9
Test that manager listen to appropriate events
2015-04-18 20:11:04 +00:00
Thibault Jouan
20cdec5fce
Fix constant resolution in layout CLI option
2015-04-18 19:53:23 +00:00
Thibault Jouan
68cec67402
Fix uhwm_wait_output acceptance helper with strings
2015-04-18 19:52:43 +00:00
Thibault Jouan
82a4161cc2
Improve UAT on layout
...
* Move cucumber features regarding the layout protocol in
layout/protocol;
* Add new cucumber features to test uh-layout integration in uh-wm, at
least simple mapping and focus behavior;
* Add new acceptance testing helpers
2015-04-18 19:33:47 +00:00
Thibault Jouan
a9466a49f0
Refactor env logging common usages with a module
2015-04-18 18:04:46 +00:00
Thibault Jouan
7d011dad60
Improve CLI usage output
...
* Move -h option at tail;
* Add separator between standard and tail options.
2015-04-18 17:08:18 +00:00
Thibault Jouan
71caf160be
Add version CLI option
2015-04-18 17:03:25 +00:00
Thibault Jouan
dcc41006d0
Delegate Env#puts to the output
2015-04-18 17:02:24 +00:00
Thibault Jouan
f94f9e2aed
Remove class_eval usage in Workers::Base
2015-04-18 14:40:12 +00:00
Thibault Jouan
1e2d423552
Fix verbose CLI option description
2015-04-18 03:15:08 +00:00
Thibault Jouan
65a3159f1a
Extract workers callback names in a constant
2015-04-18 03:13:13 +00:00
Thibault Jouan
416951dcc2
Remove comments left in Workers::Blocking
2015-04-18 03:10:26 +00:00
Thibault Jouan
4015a301cc
Refactor Workers::Base callback definitions
2015-04-18 03:09:46 +00:00
Thibault Jouan
41b99957fb
Refactor manager#handle_pending_events
2015-04-18 02:59:22 +00:00
Thibault Jouan
54e1cb8012
Fix coding standards
2015-04-18 02:59:13 +00:00
Thibault Jouan
17de52f8af
Modify test helpers to quit gracefully in cucumber
2015-04-18 02:03:37 +00:00
Thibault Jouan
5ab463cde5
Allow worker configuration with run control file
2015-04-18 02:03:37 +00:00
Thibault Jouan
9ea43ee69a
Integrate blocking and multiplexing workers usage
2015-04-18 02:03:32 +00:00
Thibault Jouan
fa03cd736a
Implement Runner#worker
2015-04-18 00:46:50 +00:00
Thibault Jouan
887c66a6f7
Implement Manager#handle_next_event
2015-04-18 00:46:50 +00:00
Thibault Jouan
231e7cd67a
Configure default worker settings
2015-04-18 00:46:50 +00:00
Thibault Jouan
cb0c5f6ca2
Add Env#worker attribute accessor
2015-04-18 00:46:50 +00:00
Thibault Jouan
0176ab0010
Prototype two workers: blocking and multiplexing
2015-04-18 00:46:50 +00:00
Thibault Jouan
0164b52465
Implement Manager#flush
2015-04-17 15:14:48 +00:00
Thibault Jouan
18667e2492
Implement Manager#to_io
2015-04-17 15:13:18 +00:00
Thibault Jouan
fbfc6089a3
Use a custom, more compact, logger formatter
2015-04-16 21:36:01 +00:00
Thibault Jouan
d6b23994e9
Add some logging in layout hooks
2015-04-16 21:33:12 +00:00
Thibault Jouan
b4240a8b4f
Implement Client#focus
2015-04-16 21:09:59 +00:00
Thibault Jouan
3cf62cc07d
Implement Client#hide
2015-04-16 21:09:59 +00:00
Thibault Jouan
870e11a702
Implement Client#show
2015-04-16 21:09:59 +00:00
Thibault Jouan
15f966654b
Implement client visibility state
2015-04-16 21:09:55 +00:00
Thibault Jouan
1a1f181313
Rename Client#wname as Client#name
2015-04-16 18:46:07 +00:00
Thibault Jouan
5351307cdc
Implement Client#moveresize
2015-04-16 18:16:49 +00:00
Thibault Jouan
078254ae6d
Simplify and refactor uhwm_wait_output helper
2015-04-16 18:02:13 +00:00
Thibault Jouan
c7f3743949
Configure uhwm_wait_output test helper via the env
...
The `timeout' keyword argument was never used, replace it with a test
for UHWMTEST_OUTPUT_TIMEOUT environment variable and use the value when
set.
2015-04-16 17:31:56 +00:00
Thibault Jouan
1e1645107c
Implement `execute' action keyword
2015-04-16 17:12:00 +00:00
Thibault Jouan
43e90dafce
Add Env#log_error to log messages at ERROR level
2015-04-16 17:11:21 +00:00
Thibault Jouan
1903ba166b
Use uh to fake windows in cucumber test suite
2015-04-16 16:13:54 +00:00
Thibault Jouan
d781a48837
Log X events received by the manager
2015-04-16 13:19:29 +00:00
Thibault Jouan
6ad1735775
Add Client#geo= attribute accessor
2015-04-16 13:18:28 +00:00
Thibault Jouan
360b1583bf
Fix AcceptanceHelpers#with_other_wm
2015-04-16 12:27:21 +00:00
Thibault Jouan
36e105bb42
Ensure test windows are closed after cucumber run
2015-04-16 12:26:29 +00:00
Thibault Jouan
0a8a6bc5fb
Refactor Manager#handle
2015-04-16 12:10:49 +00:00
Thibault Jouan
d46a332218
Extract code from Manager#connect as private method
2015-04-16 12:05:51 +00:00
Thibault Jouan
a0dcca07f9
Register clients in manager on map requests
2015-04-16 12:01:15 +00:00
Thibault Jouan
6e90225c9d
Add basic Client class
2015-04-16 12:01:15 +00:00
Thibault Jouan
fe47e27d98
Prototype clients management with windows
2015-04-16 12:01:15 +00:00
Thibault Jouan
8bcb31ddc2
Forward :manage events to the Layout in Runner
2015-04-16 12:01:15 +00:00
Thibault Jouan
4e65d46730
Handle map_request events in the Manager
2015-04-16 12:01:15 +00:00
Thibault Jouan
3f39b90269
Listen events for window management in Manager
2015-04-16 12:01:15 +00:00