Commit 7727d15c authored by anonym's avatar anonym
Browse files

Test suite: adjust for Tor Browser 7.0a4.

parent 9abc143e
features/images/TorBrowserNewTabButton.png

397 Bytes | W: | H:

features/images/TorBrowserNewTabButton.png

113 Bytes | W: | H:

features/images/TorBrowserNewTabButton.png
features/images/TorBrowserNewTabButton.png
features/images/TorBrowserNewTabButton.png
features/images/TorBrowserNewTabButton.png
  • 2-up
  • Swipe
  • Onion skin
features/images/TorBrowserOkButton.png

1012 Bytes | W: | H:

features/images/TorBrowserOkButton.png

983 Bytes | W: | H:

features/images/TorBrowserOkButton.png
features/images/TorBrowserOkButton.png
features/images/TorBrowserOkButton.png
features/images/TorBrowserOkButton.png
  • 2-up
  • Swipe
  • Onion skin
features/images/UnsafeBrowserNewTabButton.png

357 Bytes | W: | H:

features/images/UnsafeBrowserNewTabButton.png

184 Bytes | W: | H:

features/images/UnsafeBrowserNewTabButton.png
features/images/UnsafeBrowserNewTabButton.png
features/images/UnsafeBrowserNewTabButton.png
features/images/UnsafeBrowserNewTabButton.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -22,7 +22,7 @@ def xul_application_info(application)
'echo ${TBB_INSTALL}/firefox', :libs => 'tor-browser'
).stdout.chomp
address_bar_image = "BrowserAddressBar.png"
unused_tbb_libs = ['libnssdbm3.so']
unused_tbb_libs = ['libnssdbm3.so', "libmozavcodec.so", "libmozavutil.so"]
case application
when "Tor Browser"
user = LIVE_USER
......
......@@ -91,7 +91,7 @@ Then /^the Unsafe Browser has only Firefox's default bookmarks configured$/ do
assert_equal(5, mozilla_uris_counter,
"Unexpected number (#{mozilla_uris_counter}) of mozilla " \
"bookmarks")
assert_equal(3, places_uris_counter,
assert_equal(2, places_uris_counter,
"Unexpected number (#{places_uris_counter}) of places " \
"bookmarks")
@screen.type(Sikuli::Key.F4, Sikuli::KeyModifier.ALT)
......@@ -114,7 +114,7 @@ Then /^I can start the Unsafe Browser again$/ do
end
Then /^I cannot configure the Unsafe Browser to use any local proxies$/ do
socks_proxy = 'c' # Alt+c for socks proxy
socks_proxy = 'C' # Alt+Shift+c for socks proxy
no_proxy = 'y' # Alt+y for no proxy
proxies = [[no_proxy, nil, nil]]
socksport_lines =
......@@ -126,7 +126,7 @@ Then /^I cannot configure the Unsafe Browser to use any local proxies$/ do
proxies.each do |proxy_type, proxy_host, proxy_port|
@screen.hide_cursor
# Open proxy settings and select manual proxy configuration
# Open proxy settings
@screen.click('UnsafeBrowserMenuButton.png')
@screen.wait_and_click('UnsafeBrowserPreferencesButton.png', 10)
@screen.wait_and_click('UnsafeBrowserAdvancedSettingsButton.png', 10)
......@@ -135,11 +135,16 @@ Then /^I cannot configure the Unsafe Browser to use any local proxies$/ do
@screen.click(hit) if hit == 'UnsafeBrowserNetworkTab.png'
@screen.wait_and_click('UnsafeBrowserNetworkTabSettingsButton.png', 10)
@screen.wait_and_click('UnsafeBrowserProxySettingsWindow.png', 10)
@screen.type("m", Sikuli::KeyModifier.ALT)
# Configure the proxy
@screen.type(proxy_type, Sikuli::KeyModifier.ALT) # Select correct proxy type
@screen.type(proxy_host + Sikuli::Key.TAB + proxy_port) if proxy_type != no_proxy
# Ensure the desired proxy configuration
if proxy_type == no_proxy
@screen.type(proxy_type, Sikuli::KeyModifier.ALT)
@screen.wait('UnsafeBrowserNoProxySelected.png', 10)
else
@screen.type("M", Sikuli::KeyModifier.ALT)
@screen.type(proxy_type, Sikuli::KeyModifier.ALT)
@screen.type(proxy_host + Sikuli::Key.TAB + proxy_port)
end
# Close settings
@screen.click('UnsafeBrowserProxySettingsOkButton.png')
......
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