Commit 3de25862 authored by Sandro Knauß's avatar Sandro Knauß
Browse files

Merge branch 'test/17004-unsafe-browser-homepage-stretch' into stable (fix-committed: #17004)

parents 9a689165 e09ce396
......@@ -98,11 +98,14 @@ end
Then /^the Unsafe Browser shows a warning as its start page(?: in the "([^"]+)" locale)?$/ do |locale|
case locale
# Languages that have a translated version of the Unsafe Browser homepage,
# and more specifically of the "You are currently using the Unsafe Browser"
# string.
when /\A(de|fa|fr|it)/
start_page_image = "UnsafeBrowserStartPage.#{$1}.png"
# Use localized image for languages that have a translated version
# of the Unsafe Browser homepage.
when /\A([a-z]+)/
if File.exists?("#{SIKULI_IMAGE_PATH}/UnsafeBrowserStartPage.#{$1}.png")
start_page_image = "UnsafeBrowserStartPage.#{$1}.png"
else
start_page_image = "UnsafeBrowserStartPage.png"
end
else
start_page_image = "UnsafeBrowserStartPage.png"
end
......
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