Test how the manager handles window changes
This commit is contained in:
parent
95245e1178
commit
accbebe97c
7
features/manager/change.feature
Normal file
7
features/manager/change.feature
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
Feature: clients window properties updating
|
||||||
|
|
||||||
|
Scenario: logs when the window properties of a client change
|
||||||
|
Given uhwm is running
|
||||||
|
And a window is mapped
|
||||||
|
When the window name changes to "testing_new_name"
|
||||||
|
Then the output must match /updat.+testing_new_name/i
|
@ -28,6 +28,10 @@ When /^the window is destroyed$/ do
|
|||||||
x_client.destroy.sync
|
x_client.destroy.sync
|
||||||
end
|
end
|
||||||
|
|
||||||
|
When /^the window name changes to "([^"]+)"$/ do |name|
|
||||||
|
x_client.window_name = name
|
||||||
|
end
|
||||||
|
|
||||||
Then /^it must connect to X display$/ do
|
Then /^it must connect to X display$/ do
|
||||||
uhwm_wait_ready
|
uhwm_wait_ready
|
||||||
expect(x_socket_check uhwm.pid).to be true
|
expect(x_socket_check uhwm.pid).to be true
|
||||||
|
@ -159,6 +159,11 @@ module Uh
|
|||||||
@name
|
@name
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def window_name= name
|
||||||
|
@name = @window.name = name
|
||||||
|
window.name
|
||||||
|
end
|
||||||
|
|
||||||
def map times: 1
|
def map times: 1
|
||||||
times.times { window.map }
|
times.times { window.map }
|
||||||
window.map
|
window.map
|
||||||
|
Loading…
x
Reference in New Issue
Block a user