on xenial help sign in
Cleaned up screen alignment test cases.
cbf9b9aThomi Richards
tests/autopilot/unity8/shell/tests/test_big_screen_alignment.py+9−7
@@ -7,18 +7,20 @@
7
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"""
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
9
10−from testtools.matchers import Equals
11from autopilot.matchers import Eventually
10from autopilot.matchers import Eventually
11+from testtools.matchers import Equals
12
12
13from unity8.shell.tests import ShellTestCase
13from unity8.shell.tests import ShellTestCase
14
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
15
16+# TODO: Find out if these tests are still required, if so, what they're supposed
17+# to be testing, and whether they're supposed to work on the devices.
18+class ScreenAlignmentTests(ShellTestCase):
20− def tearDown(self):
19+ def setUp(self):
21− super(TestBig, self).tearDown()
20+ super(ScreenAlignmentTests, self).setUp("2560x1600", "20")
21+ self.assertThat(self.main_window.get_qml_view().visible,
22+ Eventually(Equals(True))
23+ )
22
24
23 def test_hud_not_shown_greeter(self):
25 def test_hud_not_shown_greeter(self):
24 hud_showable = self.main_window.get_hud_showable()
26 hud_showable = self.main_window.get_hud_showable()