~ps-jenkins/ubuntu-ui-extras/trusty-proposed

« back to all changes in this revision

Viewing changes to tests/autopilot/ubuntu_ui_extras/browser/tests/test_title.py

  • Committer: Ugo Riboni
  • Date: 2013-07-02 19:40:38 UTC
  • Revision ID: ugo.riboni@canonical.com-20130702194038-v9l2q3v2xxjjxn8v
Remove all browser work and leave only an example component and skeleton build system

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- coding: utf-8 -*-
2
 
#
3
 
# Copyright 2013 Canonical
4
 
#
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.
8
 
 
9
 
from __future__ import absolute_import
10
 
 
11
 
from testtools.matchers import Equals
12
 
from autopilot.matchers import Eventually
13
 
 
14
 
from ubuntu_ui_extras.browser.tests import StartOpenRemotePageTestCaseBase
15
 
 
16
 
 
17
 
class TestWindowTitle(StartOpenRemotePageTestCaseBase):
18
 
 
19
 
    """Tests that the window’s title reflects the page title."""
20
 
 
21
 
    def test_window_title(self):
22
 
        title = "Alice in Wonderland"
23
 
        body = "<p>Lorem ipsum dolor sit amet.</p>"
24
 
        url = self.make_html_page(title, body)
25
 
        self.go_to_url(url)
26
 
        window = self.main_window.get_qml_view()
27
 
        title = "Alice in Wonderland"
28
 
        self.assertThat(window.title, Eventually(Equals(title)))