Merge "[BrowserTest] Shorten lines for clarity"

This commit is contained in:
jenkins-bot 2015-02-05 09:10:53 +00:00 committed by Gerrit Code Review
commit 04f398beaa

View file

@ -160,22 +160,45 @@ end
Then(/^I take screenshot of insert pull-down menu$/) do
step 'I click on More in insert pull-down menu'
capture_screenshot("#{@scenario.name}-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png", [@current_page.insert_menu_element, @current_page.insert_pull_down_element])
capture_screenshot(
"#{@scenario.name}-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png",
[@current_page.insert_menu_element, @current_page.insert_pull_down_element]
)
highlight @current_page.media_insert_menu_element
capture_screenshot("VisualEditor_Media_Insert_Menu-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png", [@current_page.insert_menu_element, @current_page.insert_pull_down_element], nil, 0)
capture_screenshot(
"VisualEditor_Media_Insert_Menu-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png",
[@current_page.insert_menu_element, @current_page.insert_pull_down_element],
nil,
0
)
highlight @current_page.media_insert_menu_element, '#FFFFFF'
highlight @current_page.template_insert_menu_element
capture_screenshot("VisualEditor_Template_Insert_Menu-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png", [@current_page.insert_menu_element, @current_page.insert_pull_down_element], nil, 0)
capture_screenshot(
"VisualEditor_Template_Insert_Menu-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png",
[@current_page.insert_menu_element, @current_page.insert_pull_down_element],
nil,
0
)
highlight @current_page.template_insert_menu_element, '#FFFFFF'
highlight @current_page.ref_list_insert_menu_element
capture_screenshot("VisualEditor_References_List_Insert_Menu-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png", [@current_page.insert_menu_element, @current_page.insert_pull_down_element], nil, 0)
capture_screenshot(
"VisualEditor_References_List_Insert_Menu-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png",
[@current_page.insert_menu_element, @current_page.insert_pull_down_element],
nil,
0
)
highlight @current_page.ref_list_insert_menu_element, '#FFFFFF'
highlight @current_page.formula_insert_menu_element
capture_screenshot("VisualEditor_Formula_Insert_Menu-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png", [@current_page.insert_menu_element, @current_page.insert_pull_down_element], nil, 0)
capture_screenshot(
"VisualEditor_Formula_Insert_Menu-#{ENV['LANGUAGE_SCREENSHOT_CODE']}.png",
[@current_page.insert_menu_element, @current_page.insert_pull_down_element],
nil,
0
)
end
Then(/^I click on More in insert pull-down menu$/) do