1
# Mixin interfaces for writing generalised tests across applications in a category:
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
8
def browseToUrl(self, urlString):
9
"""Test hook to test browsing a URL."""
10
raise NotImplementedError
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
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
25
"""Mixin/interface for writing tests for multiple chat clients (xchat, Gaim, Konversation, Kopete)"""
28
"""Mixin/interface for writing tests for word processor apps (OpenOffice.org Writer, Abiword, KWord)"""
31
"""Mixin/interface for writing tests for spreadsheet apps (OpenOffice.org Calc, Gnumeric, KSpread)"""
33
class PresentationApp:
34
"""Mixin/interface for writing tests for presentation apps (OpenOffice.org Impress, KPresenter)"""
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
43
"""Static method to get an instance of the DesktopPanel in use, be it GnomePanel or Kicker"""
44
raise NotImplementedError
45
get = staticmethod(get)