summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordobey <dobey>2007-02-27 20:18:49 +0000
committerdobey <dobey>2007-02-27 20:18:49 +0000
commita6158bb526c404d34291e56cc3a6e6c696d1b73e (patch)
tree4dbee8a7d69dc8cfb849acc3ee0c2c98f59ecb9a
parent6597568b9a8255e637c594087155a2eeb12623d9 (diff)
2007-02-27 Rodney Dawes <dobey@novell.com>
* python/A11yTestUtils.py (a11y_test_init): Update the argument checks to handle values of None, '', or 0 * scripts/realplay.py: Update script to handle initial setup dialogs, by copying the existin realplayerrc to a backup, and back when finished
-rw-r--r--ChangeLog8
-rw-r--r--python/A11yTestUtils.py6
-rwxr-xr-xscripts/realplay.py13
3 files changed, 24 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 9eaed74..ad2ef65 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-02-27 Rodney Dawes <dobey@novell.com>
+
+ * python/A11yTestUtils.py (a11y_test_init): Update the argument checks
+ to handle values of None, '', or 0
+
+ * scripts/realplay.py: Update script to handle initial setup dialogs,
+ by copying the existin realplayerrc to a backup, and back when finished
+
2007-02-26 Rodney Dawes <dobey@novell.com>
* python/A11yTestUtils.py (a11y_test_init): Add another argument to
diff --git a/python/A11yTestUtils.py b/python/A11yTestUtils.py
index e950d02..a2f7c9f 100644
--- a/python/A11yTestUtils.py
+++ b/python/A11yTestUtils.py
@@ -134,7 +134,7 @@ def a11y_test_init (programName, argumentList = '', noLaunch = 0,
global f
ldtp.setlocale ('en_US.UTF-8')
- if (logName == ''):
+ if (logName == '' or logName == None):
logName = programName;
f = open (logName + '.html', 'w')
@@ -145,8 +145,8 @@ def a11y_test_init (programName, argumentList = '', noLaunch = 0,
f.write ('<style type=\"text/css\">@import url(report.css);</style>')
f.write ('</head>\n')
f.write ('<body>\n')
- if (noLaunch == 0):
- if (argumentList != ''):
+ if (noLaunch == 0 or noLaunch == None or noLaunch == ''):
+ if (argumentList != '' and argumentList != None and argumentList != 0):
launchapp (programName + ' ' + argumentList, 1)
else:
launchapp (programName, 1)
diff --git a/scripts/realplay.py b/scripts/realplay.py
index c0ee770..edef332 100755
--- a/scripts/realplay.py
+++ b/scripts/realplay.py
@@ -10,8 +10,18 @@ os.environ['GNOME_ACCESSIBILITY'] = '1'
program_name = 'realplay'
window_title = 'RealPlayer'
+rc_file = os.environ['HOME'] + '/.realplayerrc'
+rc_back = rc_file + '.bak'
+
+os.rename (rc_file, rc_back)
a11y_test_init (program_name)
+
+a11y_scan_dialog ('RealPlayerSetupAssistant', 'btnForward')
+a11y_scan_dialog ('RealPlayerSetupAssistant', 'btnForward1')
+a11y_scan_dialog ('RealPlayerSetupAssistant', 'btnAccept')
+a11y_scan_dialog ('RealPlayerSetupAssistant', 'btnOK')
+
a11y_scan_window (window_title)
selectmenuitem (window_title, 'mnuFile;mnuOpenFile')
@@ -41,3 +51,6 @@ a11y_scan_dialog ('dlgAboutRealPlayer', 'btnClose')
selectmenuitem (window_title, 'mnuFile;mnuQuit')
a11y_test_shutdown ()
+
+os.unlink (rc_file)
+os.rename (rc_back, rc_file)