diff options
author | dobey <dobey> | 2006-10-25 14:46:28 +0000 |
---|---|---|
committer | dobey <dobey> | 2006-10-25 14:46:28 +0000 |
commit | ee7953c4fdddad0c32fa8fdd0e32db9901e807c7 (patch) | |
tree | fab6739c74c74758d961bd855fcf6b8f46929f4a | |
parent | ef3af4f3ff1cb625e8d2777327d83446321d7a43 (diff) |
2006-10-24 Rodney Dawes <dobey@novell.com>
* python/A11yTestUtils.py (a11y_test_init): Add a third argument to
specify whether or not to run the app, so that we can test apps which
need to already be running, such as the panel or nautilus
* scripts/Makefile.am: Update to include all the new scripts
* scripts/gnome-panel.py: Add the beginnings of a script to test the
gnome-panel accessibility
-rw-r--r-- | ChangeLog | 11 | ||||
-rw-r--r-- | python/A11yTestUtils.py | 13 | ||||
-rw-r--r-- | scripts/Makefile.am | 14 | ||||
-rwxr-xr-x | scripts/gnome-panel.py | 17 |
4 files changed, 49 insertions, 6 deletions
@@ -1,3 +1,14 @@ +2006-10-24 Rodney Dawes <dobey@novell.com> + + * python/A11yTestUtils.py (a11y_test_init): Add a third argument to + specify whether or not to run the app, so that we can test apps which + need to already be running, such as the panel or nautilus + + * scripts/Makefile.am: Update to include all the new scripts + + * scripts/gnome-panel.py: Add the beginnings of a script to test the + gnome-panel accessibility + 2006-09-28 Rodney Dawes <dobey@novell.com> * configure.ac: Up version to 2.15.1 for release diff --git a/python/A11yTestUtils.py b/python/A11yTestUtils.py index cb9d14d..2e81b27 100644 --- a/python/A11yTestUtils.py +++ b/python/A11yTestUtils.py @@ -102,9 +102,9 @@ def a11y_scan_window (windowName): f.write ('</tr>\n') f.write ('</table>\n') -def a11y_test_init (programName, argumentList = ''): +def a11y_test_init (programName, argumentList = '', noLaunch = 0): global f - os.environ['LANG'] = 'en_US.UTF-8' + ldtp.setlocale ('en_US.UTF-8') f = open (programName + '.html', 'w') f.write ('<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\">') f.write ('<html>\n') @@ -113,10 +113,11 @@ def a11y_test_init (programName, argumentList = ''): f.write ('<style type=\"text/css\">@import url(report.css);</style>') f.write ('</head>\n') f.write ('<body>\n') - if (argumentList != ''): - launchapp (programName + ' ' + argumentList, 1) - else: - launchapp (programName, 1) + if (noLaunch == 0): + if (argumentList != ''): + launchapp (programName + ' ' + argumentList, 1) + else: + launchapp (programName, 1) def a11y_test_shutdown (): f.write ('</body>\n') diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 8d24c92..7cd27bf 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -8,9 +8,23 @@ scriptfiles = \ gaim.py \ gedit.py \ gimp.py \ + gnome-accessibility-keyboard-properties.py \ + gnome-at-properties.py \ gnome-background-properties.py \ + gnome-default-applications-properties.py \ + gnome-display-properties.py \ + gnome-font-properties.py \ + gnome-keybinding-properties.py \ + gnome-keyboard-properties.py \ gnome-mouse-properties.py \ + gnome-network-preferences.py \ + gnome-panel.py \ + gnome-passwd.py \ + gnome-sound-properties.py \ gnome-system-monitor.py \ + gnome-theme-manager.py \ + gnome-ui-properties.py \ + gnome-window-properties.py \ realplay.py \ yelp.py \ zen-installer.py diff --git a/scripts/gnome-panel.py b/scripts/gnome-panel.py new file mode 100755 index 0000000..24dcec3 --- /dev/null +++ b/scripts/gnome-panel.py @@ -0,0 +1,17 @@ +#!/usr/bin/python + +import string, sys, os +from ldtp import * +from ldtputils import * +from A11yTestUtils import * + +program_name = 'gnome-panel' +window_title = 'Bottom Expanded Edge Panel' + +a11y_test_init (program_name, '', 1) + +guiexist (window_title) + +a11y_scan_window (window_title) + +a11y_test_shutdown () |