~mzanetti/unity/phablet-autopilot

« back to all changes in this revision

Viewing changes to tests/autopilot/qml_phone_shell/tests/testconfigurations.py

  • Committer: Michael Zanetti
  • Date: 2013-02-27 14:13:03 UTC
  • Revision ID: michael.zanetti@canonical.com-20130227141303-1jx1a9yq8zze88ke
added possibility to blacklist tests for certain form factors

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
from testtools.matchers import Equals
13
13
from autopilot.matchers import Eventually
14
14
 
15
 
from qml_phone_shell.tests import ShellTestCase
 
15
from qml_phone_shell.tests import ShellTestCase, FormFactors
16
16
from qml_phone_shell.tests.testcases import TestShell
17
17
 
18
18
class TestNexus4(TestShell, ShellTestCase):
20
20
    def setUp(self):
21
21
        super(TestNexus4, self).setUp("768x1280", "18")
22
22
        self.assertThat(self.main_window.get_qml_view().visible, Eventually(Equals(True)))
23
 
        self.unlock_greeter()
24
23
 
25
24
    def tearDown(self):
26
25
        super(TestNexus4, self).tearDown()
27
26
 
 
27
    def form_factor(self):
 
28
        return FormFactors.Phone
 
29
 
 
30
 
28
31
 
29
32
class TestNexus7(TestShell, ShellTestCase):
30
33
 
31
34
    def setUp(self):
32
35
        super(TestNexus7, self).setUp("800x1280", "14")
33
36
        self.assertThat(self.main_window.get_qml_view().visible, Eventually(Equals(True)))
34
 
        self.unlock_greeter()
35
37
 
36
38
    def tearDown(self):
37
39
        super(TestNexus7, self).tearDown()
38
40
 
 
41
    def form_factor(self):
 
42
        return FormFactors.Tablet
 
43
 
39
44
 
40
45
class TestNexus10(TestShell, ShellTestCase):
41
46
 
42
47
    def setUp(self):
43
48
        super(TestNexus10, self).setUp("2560x1600", "20")
44
49
        self.assertThat(self.main_window.get_qml_view().visible, Eventually(Equals(True)))
45
 
        self.unlock_greeter()
46
50
 
47
51
    def tearDown(self):
48
52
        super(TestNexus10, self).tearDown()
49
53
 
 
54
    def form_factor(self):
 
55
        return FormFactors.Tablet