~ubuntu-branches/ubuntu/natty/mago/natty

« back to all changes in this revision

Viewing changes to mago/test_suite/gnome.py

  • Committer: Bazaar Package Importer
  • Author(s): Ara Pulido
  • Date: 2010-04-14 14:05:34 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100414140534-grv0bwv9wv97khir
Tags: 0.2-0ubuntu1
* Mago tests updated for Lucid
  + Fixes arguments handling (LP: #562965)
  + Fixes seahorse tests (LP: #552618)
  + Fixes ubuntu-menu tests (LP: #551492)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
"""
5
5
import ldtp, ooldtp
6
6
from .main import SingleApplicationTestSuite
7
 
from ..application.gnome import Application, Seahorse, GEdit
 
7
from ..application.gnome import Application, Seahorse, GEdit, GnomeScreenshot, Calculator
 
8
 
 
9
class GCalctoolTestSuite(SingleApplicationTestSuite):
 
10
    """
 
11
    Default test suite for Calculator
 
12
    """
 
13
    APPLICATION_FACTORY = Calculator
 
14
    def setup(self):
 
15
        self.application.open()
 
16
        self.application.push("C")
 
17
 
 
18
    def teardown(self):
 
19
        self.application.close()
 
20
    
 
21
    def cleanup(self):
 
22
        pass
 
23
 
 
24
class GCalctoolViewTestSuite(GCalctoolTestSuite):
 
25
    """
 
26
    Test suite for views populates the screen with some data in setup
 
27
    """
 
28
    def setup(self):
 
29
        GCalctoolTestSuite.setup(self)
 
30
        self.application.push("13.37")   
 
31
 
 
32
class GnomeScreenshotTestSuite(SingleApplicationTestSuite):
 
33
    APPLICATION_FACTORY = GnomeScreenshot   
8
34
 
9
35
class SeahorseTestSuite(SingleApplicationTestSuite):
10
36
    """