[orca] New test case



commit d6800e16505fd3c3043ea115b7bd651e5338ed35
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Feb 6 13:14:21 2017 -0500

    New test case

 test/html/containers.html                          |   23 +++
 .../firefox/html_struct_nav_containers.params      |    1 +
 .../firefox/html_struct_nav_containers.py          |  192 ++++++++++++++++++++
 3 files changed, 216 insertions(+), 0 deletions(-)
---
diff --git a/test/html/containers.html b/test/html/containers.html
new file mode 100644
index 0000000..76e93fd
--- /dev/null
+++ b/test/html/containers.html
@@ -0,0 +1,23 @@
+<html>
+<head></head>
+<body>
+<ol>
+<li>item 1</li>
+<li>item 2</li>
+</ol>
+<table border=1>
+<tr><td>Cell 1</td><td>Cell 2</td></tr>
+<tr><td>Cell 3</td><td>Cell 4 (it's the last one)</td></tr>
+</table>
+<p>A paragraph without much text.</p>
+<div role="group">Another paragraph without much text.</div>
+<blockquote>
+<p>A quoted paragraph without much text.</p>
+<p>Another quoted paragraph without much text.</p>
+</blockquote>
+<ul>
+<li>item 3</li>
+<li>item 4</li>
+</ul>
+</body>
+</html>
diff --git a/test/keystrokes/firefox/html_struct_nav_containers.params 
b/test/keystrokes/firefox/html_struct_nav_containers.params
new file mode 100644
index 0000000..ecb1d67
--- /dev/null
+++ b/test/keystrokes/firefox/html_struct_nav_containers.params
@@ -0,0 +1 @@
+PARAMS=$TEST_DIR/../../html/containers.html
diff --git a/test/keystrokes/firefox/html_struct_nav_containers.py 
b/test/keystrokes/firefox/html_struct_nav_containers.py
new file mode 100644
index 0000000..2da8744
--- /dev/null
+++ b/test/keystrokes/firefox/html_struct_nav_containers.py
@@ -0,0 +1,192 @@
+#!/usr/bin/python
+
+from macaroon.playback import *
+import utils
+
+sequence = MacroSequence()
+
+#sequence.append(WaitForDocLoad())
+sequence.append(PauseAction(5000))
+sequence.append(KeyComboAction("<Control>r"))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("<Control>Home"))
+sequence.append(utils.AssertPresentationAction(
+    "1. Ctrl+Home",
+    ["BRAILLE LINE:  '1. item 1'",
+     "     VISIBLE:  '1. item 1', cursor=1",
+     "SPEECH OUTPUT: '1. item 1.'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("comma"))
+sequence.append(utils.AssertPresentationAction(
+    "2. comma",
+    ["BRAILLE LINE:  'Cell 1'",
+     "     VISIBLE:  'Cell 1', cursor=1",
+     "SPEECH OUTPUT: 'leaving list.'",
+     "SPEECH OUTPUT: 'Cell 1.'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("comma"))
+sequence.append(utils.AssertPresentationAction(
+    "3. comma",
+    ["BRAILLE LINE:  'A paragraph without much text.'",
+     "     VISIBLE:  'A paragraph without much text.', cursor=1",
+     "SPEECH OUTPUT: 'A paragraph without much text.'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("comma"))
+sequence.append(utils.AssertPresentationAction(
+    "4. comma",
+    ["BRAILLE LINE:  'Not in a container.'",
+     "     VISIBLE:  'Not in a container.', cursor=0",
+     "SPEECH OUTPUT: 'Not in a container.' voice=system"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+    "5. Down",
+    ["BRAILLE LINE:  'A paragraph without much text.'",
+     "     VISIBLE:  'A paragraph without much text.', cursor=1",
+     "BRAILLE LINE:  'Another paragraph without much text.'",
+     "     VISIBLE:  'Another paragraph without much t', cursor=1",
+     "SPEECH OUTPUT: 'Another paragraph without much text. panel.'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("comma"))
+sequence.append(utils.AssertPresentationAction(
+    "6. comma",
+    ["BRAILLE LINE:  'A quoted paragraph without much text.'",
+     "     VISIBLE:  'A quoted paragraph without much ', cursor=1",
+     "SPEECH OUTPUT: 'block quote.'",
+     "SPEECH OUTPUT: 'A quoted paragraph without much text.'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("comma"))
+sequence.append(utils.AssertPresentationAction(
+    "7. comma",
+    ["BRAILLE LINE:  '• item 3'",
+     "     VISIBLE:  '• item 3', cursor=1",
+     "SPEECH OUTPUT: 'leaving blockquote.'",
+     "SPEECH OUTPUT: 'List with 2 items.'",
+     "SPEECH OUTPUT: '• item 3.'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("comma"))
+sequence.append(utils.AssertPresentationAction(
+    "8. comma",
+    ["BRAILLE LINE:  'End of container.'",
+     "     VISIBLE:  'End of container.', cursor=0",
+     "BRAILLE LINE:  '• item 4'",
+     "     VISIBLE:  '• item 4', cursor=1",
+     "SPEECH OUTPUT: 'End of container.' voice=system",
+     "SPEECH OUTPUT: '• item 4.'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("comma"))
+sequence.append(utils.AssertPresentationAction(
+    "9. comma",
+    ["BRAILLE LINE:  'End of container.'",
+     "     VISIBLE:  'End of container.', cursor=0",
+     "BRAILLE LINE:  '• item 4'",
+     "     VISIBLE:  '• item 4', cursor=1",
+     "SPEECH OUTPUT: 'End of container.' voice=system",
+     "SPEECH OUTPUT: '• item 4.'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("<Shift>comma"))
+sequence.append(utils.AssertPresentationAction(
+    "10. shift+comma",
+    ["BRAILLE LINE:  '• item 3'",
+     "     VISIBLE:  '• item 3', cursor=1",
+     "SPEECH OUTPUT: '• item 3.'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+    "11. up",
+    ["BRAILLE LINE:  'Another quoted paragraph without much text.'",
+     "     VISIBLE:  'Another quoted paragraph without', cursor=1",
+     "SPEECH OUTPUT: 'leaving list.'",
+     "SPEECH OUTPUT: 'block quote.'",
+     "SPEECH OUTPUT: 'Another quoted paragraph without much text.'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("<Shift>comma"))
+sequence.append(utils.AssertPresentationAction(
+    "12. shift+comma",
+    ["BRAILLE LINE:  'A quoted paragraph without much text.'",
+     "     VISIBLE:  'A quoted paragraph without much ', cursor=1",
+     "SPEECH OUTPUT: 'A quoted paragraph without much text.'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+    "13. up",
+    ["BRAILLE LINE:  'Another paragraph without much text.'",
+     "     VISIBLE:  'Another paragraph without much t', cursor=1",
+     "SPEECH OUTPUT: 'leaving blockquote.'",
+     "SPEECH OUTPUT: 'Another paragraph without much text. panel.'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("<Shift>comma"))
+sequence.append(utils.AssertPresentationAction(
+    "14. shift+comma",
+    ["BRAILLE LINE:  'Another paragraph without much text.'",
+     "     VISIBLE:  'Another paragraph without much t', cursor=1",
+     "SPEECH OUTPUT: 'Another paragraph without much text.'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+    "15. up",
+    ["BRAILLE LINE:  'A paragraph without much text.'",
+     "     VISIBLE:  'A paragraph without much text.', cursor=1",
+     "SPEECH OUTPUT: 'A paragraph without much text.'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("<Shift>comma"))
+sequence.append(utils.AssertPresentationAction(
+    "16. shift+comma",
+    ["BRAILLE LINE:  'Not in a container.'",
+     "     VISIBLE:  'Not in a container.', cursor=0",
+     "SPEECH OUTPUT: 'Not in a container.' voice=system"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+    "17. up",
+    ["BRAILLE LINE:  'A paragraph without much text.'",
+     "     VISIBLE:  'A paragraph without much text.', cursor=1",
+     "BRAILLE LINE:  'Cell 3 Cell 4 (it's the last one)'",
+     "     VISIBLE:  'Cell 3 Cell 4 (it's the last one', cursor=1",
+     "SPEECH OUTPUT: 'Cell 3.'",
+     "SPEECH OUTPUT: 'Cell 4 (it's the last one).'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("<Shift>comma"))
+sequence.append(utils.AssertPresentationAction(
+    "18. shift+comma",
+    ["BRAILLE LINE:  'Cell 1'",
+     "     VISIBLE:  'Cell 1', cursor=1",
+     "SPEECH OUTPUT: 'Cell 1.'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+    "19. up",
+    ["BRAILLE LINE:  '2. item 2'",
+     "     VISIBLE:  '2. item 2', cursor=1",
+     "SPEECH OUTPUT: 'List with 2 items.'",
+     "SPEECH OUTPUT: '2. item 2.'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("<Shift>comma"))
+sequence.append(utils.AssertPresentationAction(
+    "20. shift+comma",
+    ["BRAILLE LINE:  '1. item 1'",
+     "     VISIBLE:  '1. item 1', cursor=1",
+     "SPEECH OUTPUT: '1. item 1.'"]))
+
+sequence.append(utils.AssertionSummaryAction())
+sequence.start()


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