diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | python/A11yTestUtils.py | 7 |
2 files changed, 10 insertions, 2 deletions
@@ -1,5 +1,10 @@ 2006-09-20 Rodney Dawes <dobey@novell.com> + * python/A11yTestSuite.py (a11y_test_init): Add support for passing + in arguments to launch the application with + +2006-09-20 Rodney Dawes <dobey@novell.com> + * scripts/zen-installer.py: Update to use the python module stuff for scanning the program for accessibility issues diff --git a/python/A11yTestUtils.py b/python/A11yTestUtils.py index 26630a3..3c95b20 100644 --- a/python/A11yTestUtils.py +++ b/python/A11yTestUtils.py @@ -102,7 +102,7 @@ def a11y_scan_window (windowName): f.write ('</tr>\n') f.write ('</table>\n') -def a11y_test_init (programName): +def a11y_test_init (programName, argumentList = ''): global f f = open (programName + '.html', 'w') f.write ('<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\">') @@ -112,7 +112,10 @@ def a11y_test_init (programName): f.write ('<style type=\"text/css\">@import url(report.css);</style>') f.write ('</head>\n') f.write ('<body>\n') - launchapp (programName, 1) + if (argumentList != ''): + launchapp (programName + ' ' + argumentList, 1) + else: + launchapp (programName, 1) def a11y_test_shutdown (): f.write ('</body>\n') |