summaryrefslogtreecommitdiff
path: root/scripts/gimp.py
blob: 93e235bd45fe63fac5e64183122b52af43927e7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/python

import string, sys, os
from ldtp import *
from ldtputils import *
from A11yTestUtils import *

program_name = 'gimp'
window_title = 'The GIMP'

a11y_test_init (program_name)

guiexist (window_title)

a11y_scan_window (window_title)

selectmenuitem (window_title, 'mnuFile;mnuNew')
a11y_scan_dialog ('dlgCreateaNewImage', 'btnOK')
# The canvas window apparently is not accessible :(
#a11y_scan_window ('wndUntitled-*')

selectmenuitem (window_title, 'mnuFile;mnuOpenLocation')
a11y_scan_dialog ('dlgOpenLocation', 'btnCancel')

selectmenuitem (window_title, 'mnuFile;mnuAcquire;mnuScreenShot')
a11y_scan_dialog ('dlgScreenShot', 'btnCancel')

#selectmenuitem (window_title, 'mnuFile;mnuPreferences')
#a11y_scan_dialog ('dlgPreferences', 'btnCancel')

selectmenuitem (window_title, 'mnuXtns;mnuModuleManager')
a11y_scan_dialog ('dlgModuleManager', 'btnClose')

#selectmenuitem (window_title, 'mnuXtns;mnuPluginBrowser')
#a11y_scan_dialog ('dlgPluginBrowser', 'btnClose')

selectmenuitem (window_title, 'mnuXtns;mnuProcedureBrowser')
a11y_scan_dialog ('dlgProcedureBrowser', 'btnClose')

selectmenuitem (window_title, 'mnuXtns;mnuUnitEditor')
a11y_scan_dialog ('dlgUnitEditor', 'btnClose')

#selectmenuitem (window_title, 'mnuHelp;mnuHelp')
#a11y_scan_dialog ('wndGIMPHelpBrowser', 'btnClose')

#selectmenuitem (window_title, 'mnuHelp;mnuTipoftheDay')
#a11y_scan_dialog ('dlgGIMPTipoftheDay', 'btnClose')

# Close GIMP
selectmenuitem (window_title, 'mnuFile;mnuQuit')

a11y_test_shutdown ()