Commit 2cf846e8 authored by Tails developers's avatar Tails developers
Browse files

Simplify method name.

parent 1c2c6544
......@@ -80,10 +80,10 @@ And /^I say something to my friend( in the group chat)?$/ do |group_chat|
next if @skip_steps_while_restoring_background
msg = "ping" + Sikuli::Key.ENTER
if group_chat
@vm.focus_xorg_window(@chat_room_jid.split("@").first)
@vm.focus_window(@chat_room_jid.split("@").first)
msg = @friend_name + ": " + msg
else
@vm.focus_xorg_window(@friend_name)
@vm.focus_window(@friend_name)
end
@screen.type(msg)
end
......@@ -263,7 +263,7 @@ Then /^Pidgin successfully connects to the "([^"]+)" account$/ do |account|
next if @skip_steps_while_restoring_background
expected_channel_entry = chan_image(account, default_chan(account), 'roaster')
# Sometimes the OFTC welcome notice window pops up over the buddy list one...
@vm.focus_xorg_window('Buddy List')
@vm.focus_window('Buddy List')
@screen.wait(expected_channel_entry, 60)
end
......
......@@ -374,7 +374,7 @@ EOF
return execute("pidof -x -o '%PPID' " + process).stdout.chomp.split
end
def focus_xorg_window(window_title, user = LIVE_USER)
def focus_window(window_title, user = LIVE_USER)
execute_successfully(
"xdotool search --name '#{window_title}' windowactivate --sync", user
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment