Add layout client unmanagement feature
This commit is contained in:
parent
38a90ab0af
commit
a6edac962b
10
features/layout/unmanage.feature
Normal file
10
features/layout/unmanage.feature
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
Feature: layout client unmanagement
|
||||||
|
|
||||||
|
Background:
|
||||||
|
Given uhwm is running
|
||||||
|
And a first window is mapped
|
||||||
|
And a second window is mapped
|
||||||
|
|
||||||
|
Scenario: maps another window
|
||||||
|
When the second window requests to be unmapped
|
||||||
|
Then the first window must be mapped
|
@ -1,3 +1,7 @@
|
|||||||
|
Given /^a (\w+) window is mapped$/ do |ident|
|
||||||
|
x_window_map ident: ident
|
||||||
|
end
|
||||||
|
|
||||||
When /^I press the ([^ ]+) keys?$/ do |keys|
|
When /^I press the ([^ ]+) keys?$/ do |keys|
|
||||||
x_key keys
|
x_key keys
|
||||||
end
|
end
|
||||||
@ -6,6 +10,10 @@ When /^a window requests to be mapped$/ do
|
|||||||
x_window_map
|
x_window_map
|
||||||
end
|
end
|
||||||
|
|
||||||
|
When /^the (\w+) window requests to be unmapped$/ do |ident|
|
||||||
|
x_window_unmap ident: ident
|
||||||
|
end
|
||||||
|
|
||||||
When /^a window requests to be mapped (\d+) times$/ do |times|
|
When /^a window requests to be mapped (\d+) times$/ do |times|
|
||||||
x_window_map times: times.to_i
|
x_window_map times: times.to_i
|
||||||
end
|
end
|
||||||
@ -19,6 +27,10 @@ Then /^the window must be mapped$/ do
|
|||||||
expect(x_window_map_state).to eq 'IsViewable'
|
expect(x_window_map_state).to eq 'IsViewable'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Then /^the (\w+) window must be mapped$/ do |ident|
|
||||||
|
expect(x_window_map_state ident: ident).to eq 'IsViewable'
|
||||||
|
end
|
||||||
|
|
||||||
Then /^the window must be focused$/ do
|
Then /^the window must be focused$/ do
|
||||||
expect(x_focused_window_id).to eq x_window_id
|
expect(x_focused_window_id).to eq x_window_id
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user