[orca] New test case



commit 9bb251a125f62def41747e99d2b5f8d18771ba52
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Sep 22 14:54:25 2015 -0400

    New test case

 test/html/aria-role-application.html               |    8 +++
 .../firefox/line_nav_role_application.params       |    1 +
 .../firefox/line_nav_role_application.py           |   59 ++++++++++++++++++++
 3 files changed, 68 insertions(+), 0 deletions(-)
---
diff --git a/test/html/aria-role-application.html b/test/html/aria-role-application.html
new file mode 100644
index 0000000..35c3263
--- /dev/null
+++ b/test/html/aria-role-application.html
@@ -0,0 +1,8 @@
+<html>
+<head></head> 
+<body>
+<div>line 1</div>
+<div role="application">line 2</div>
+<div>line 3</div>
+</body>
+</html>
diff --git a/test/keystrokes/firefox/line_nav_role_application.params 
b/test/keystrokes/firefox/line_nav_role_application.params
new file mode 100644
index 0000000..f95f0cb
--- /dev/null
+++ b/test/keystrokes/firefox/line_nav_role_application.params
@@ -0,0 +1 @@
+PARAMS=$TEST_DIR/../../html/aria-role-application.html
diff --git a/test/keystrokes/firefox/line_nav_role_application.py 
b/test/keystrokes/firefox/line_nav_role_application.py
new file mode 100644
index 0000000..6643366
--- /dev/null
+++ b/test/keystrokes/firefox/line_nav_role_application.py
@@ -0,0 +1,59 @@
+#!/usr/bin/python
+
+"""Test of line navigation output of Firefox."""
+
+from macaroon.playback import *
+import utils
+
+sequence = MacroSequence()
+
+sequence.append(WaitForDocLoad())
+
+# Work around some new quirk in Gecko that causes this test to fail if
+# run via the test harness rather than manually.
+sequence.append(KeyComboAction("<Control>r"))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("<Control>Home"))
+sequence.append(utils.AssertPresentationAction(
+    "1. Top of file",
+    ["BRAILLE LINE:  'line 1'",
+     "     VISIBLE:  'line 1', cursor=1",
+     "SPEECH OUTPUT: 'line 1'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+    "2. Line Down",
+    ["BRAILLE LINE:  'line 2 embedded'",
+     "     VISIBLE:  'line 2 embedded', cursor=1",
+     "SPEECH OUTPUT: 'line 2'",
+     "SPEECH OUTPUT: 'embedded'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+    "3. Line Down",
+    ["BRAILLE LINE:  'line 3'",
+     "     VISIBLE:  'line 3', cursor=1",
+     "SPEECH OUTPUT: 'line 3'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+    "4. Line Up",
+    ["BRAILLE LINE:  'line 2 embedded'",
+     "     VISIBLE:  'line 2 embedded', cursor=1",
+     "SPEECH OUTPUT: 'line 2'",
+     "SPEECH OUTPUT: 'embedded'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+    "5. Line Up",
+    ["BRAILLE LINE:  'line 1'",
+     "     VISIBLE:  'line 1', cursor=1",
+     "SPEECH OUTPUT: 'line 1'"]))
+
+sequence.append(utils.AssertionSummaryAction())
+sequence.start()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]