1
# -*- coding: utf-8 -*-
3
# Copyright 2013 Canonical
5
# This program is free software: you can redistribute it and/or modify it
6
# under the terms of the GNU General Public License version 3, as published
7
# by the Free Software Foundation.
9
from __future__ import absolute_import
11
from webbrowser_app.tests import BrowserTestCaseBase
14
class TestToolbar(BrowserTestCaseBase):
16
"""Tests interaction with the toolbar."""
18
def test_reveal_chrome(self):
19
self.ensure_chrome_is_hidden()
21
self.assert_chrome_eventually_shown()
23
def test_hide_chrome(self):
24
self.ensure_chrome_is_hidden()
27
self.assert_chrome_eventually_hidden()
29
def test_unfocus_chrome_hides_it(self):
30
webview = self.main_window.get_web_view()
31
self.ensure_chrome_is_hidden()
33
self.pointing_device.move_to_object(webview)
34
self.pointing_device.click()
35
self.assert_chrome_eventually_hidden()