Support delay modification in x_key UAT helper

This commit is contained in:
Thibault Jouan 2015-04-29 02:51:58 +00:00
parent 4bc513010e
commit 2731f9b3a3

View File

@ -98,7 +98,8 @@ expected `#{message}' (#{times}) not seen after #{e.timeout} seconds in:
.grep /Mask\z/
end
def x_key k
def x_key *k, delay: 12
k = k.join " key --delay #{delay} "
fail "cannot simulate X key `#{k}'" unless system "xdotool key #{k}"
end