~ubuntu-branches/ubuntu/utopic/dogtail/utopic

« back to all changes in this revision

Viewing changes to dogtail/apps/categories.py

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2006-12-21 13:33:47 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20061221133347-xo9jg11afp5plcka
Tags: upstream-0.6.1
ImportĀ upstreamĀ versionĀ 0.6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Mixin interfaces for writing generalised tests across applications in a category:
2
 
class WebBrowser:
3
 
        """Mixin/interface for writing cross-browser tests"""
4
 
        def browseToLocalFile(self, filename):
5
 
                """Test hook to test viewing a local file."""
6
 
                raise NotImplementedError
7
 
 
8
 
        def browseToUrl(self, urlString):
9
 
                """Test hook to test browsing a URL."""
10
 
                raise NotImplementedError
11
 
 
12
 
class EmailClient:
13
 
        """Mixin/interface for writing tests for multiple email clients"""
14
 
        def importSingleEmail(self, filename):
15
 
                """Test hook to test importing a single email."""
16
 
                raise NotImplementedError
17
 
 
18
 
class FileBrowser:
19
 
        """Mixin/interface for writing tests for multiple file browser applications"""
20
 
        def viewFolder(self, directory):
21
 
                """Test hook to open a view of the directory."""
22
 
                raise NotImplementedError
23
 
 
24
 
class ChatClient:
25
 
        """Mixin/interface for writing tests for multiple chat clients (xchat, Gaim, Konversation, Kopete)"""
26
 
 
27
 
class WordProcessor:
28
 
        """Mixin/interface for writing tests for word processor apps (OpenOffice.org Writer, Abiword, KWord)"""
29
 
 
30
 
class Spreadsheet:
31
 
        """Mixin/interface for writing tests for spreadsheet apps (OpenOffice.org Calc, Gnumeric, KSpread)"""
32
 
 
33
 
class PresentationApp:
34
 
        """Mixin/interface for writing tests for presentation apps (OpenOffice.org Impress, KPresenter)"""
35
 
 
36
 
class DesktopPanel:
37
 
        """Mixin/interface for writing tests for multiple implementations of the desktop panel"""
38
 
        def applications(self):
39
 
                """Get a list of MenuItemRef instances for every user-visible application launchable from the panel"""
40
 
                raise NotImplementedError
41
 
 
42
 
        def get():
43
 
                """Static method to get an instance of the DesktopPanel in use, be it GnomePanel or Kicker"""
44
 
                raise NotImplementedError
45
 
        get = staticmethod(get)