Test blocking worker event handling reliability
This commit is contained in:
parent
2731f9b3a3
commit
d24f25bbbe
@ -20,6 +20,10 @@ When /^I press the ([^ ]+) keys? (\d+) times$/ do |keys, times|
|
||||
times.to_i.times { x_key keys }
|
||||
end
|
||||
|
||||
When /^I quickly press the ([^ ]+) keys? (\d+) times$/ do |keys, times|
|
||||
x_key [keys] * times.to_i, delay: 0
|
||||
end
|
||||
|
||||
When /^a window requests to be mapped$/ do
|
||||
x_client.map.sync
|
||||
end
|
||||
|
@ -10,6 +10,6 @@ Feature: blocking worker
|
||||
key(:f) { puts 'testing_worker_read' }
|
||||
"""
|
||||
And uhwm is running with options -v -w block
|
||||
When I press the alt+f key 3 times
|
||||
When I quickly press the alt+f key 1024 times
|
||||
And I quit uhwm
|
||||
Then the output must match /(testing_worker_read)/ exactly 3 times
|
||||
Then the output must match /(testing_worker_read)/ exactly 1024 times
|
||||
|
Loading…
x
Reference in New Issue
Block a user