~unity-team/unity8/trunk

« back to all changes in this revision

Viewing changes to tests/autopilot/unity8/tests/testbigscreen.py

  • Committer: Michał Sawicz
  • Date: 2013-06-05 22:03:08 UTC
  • Revision ID: michal.sawicz@canonical.com-20130605220308-yny8fv3futtr04fg
Inital unity8 commit.

Previous history can be found at https://code.launchpad.net/~unity-team/unity/phablet

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
 
2
# Copyright 2013 Canonical
 
3
#
 
4
# This program is free software: you can redistribute it and/or modify it
 
5
# under the terms of the GNU General Public License version 3, as published
 
6
# by the Free Software Foundation.
 
7
 
 
8
"""Add tests here if you want to ensure everything is aligned correctly on huge screens. Because this test does not fit on most screens, you should not use input devices here or your tests are likely to fail"""
 
9
 
 
10
from testtools.matchers import Equals
 
11
from autopilot.matchers import Eventually
 
12
 
 
13
from unity8.tests import ShellTestCase
 
14
 
 
15
class TestBig(ShellTestCase):
 
16
    def setUp(self):
 
17
        super(TestBig, self).setUp("2560x1600", "20")
 
18
        self.assertThat(self.main_window.get_qml_view().visible, Eventually(Equals(True)))
 
19
 
 
20
    def tearDown(self):
 
21
        super(TestBig, self).tearDown()
 
22
 
 
23
    def test_hud_not_shown_greeter(self):
 
24
        hud_showable = self.main_window.get_hud_showable()
 
25
        self.assertThat(hud_showable.y, Eventually(Equals(1600)))