[orca/gnome-3-14] New test case



commit c3f33f82f0e7523d8b63c5d86c64ac1ea2b66375
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Sep 4 14:21:08 2014 -0400

    New test case

 test/html/heading-loop.html                        |   16 +++++++
 ...html_struct_nav_heading_in_div_with_text.params |    1 +
 .../html_struct_nav_heading_in_div_with_text.py    |   42 ++++++++++++++++++++
 3 files changed, 59 insertions(+), 0 deletions(-)
---
diff --git a/test/html/heading-loop.html b/test/html/heading-loop.html
new file mode 100644
index 0000000..f0b6ff8
--- /dev/null
+++ b/test/html/heading-loop.html
@@ -0,0 +1,16 @@
+<html>
+<body>
+<div>
+Start
+<h2> <a href="foo">First Heading </a> </h2>
+text
+</div>
+
+<div>
+<h2> <a href="foo">Second Heading </a> </h2>
+text
+</div>
+End
+</div>
+</body>
+</html>
diff --git a/test/keystrokes/firefox/html_struct_nav_heading_in_div_with_text.params 
b/test/keystrokes/firefox/html_struct_nav_heading_in_div_with_text.params
new file mode 100644
index 0000000..aaa660b
--- /dev/null
+++ b/test/keystrokes/firefox/html_struct_nav_heading_in_div_with_text.params
@@ -0,0 +1 @@
+PARAMS=$TEST_DIR/../../html/heading-loop.html
diff --git a/test/keystrokes/firefox/html_struct_nav_heading_in_div_with_text.py 
b/test/keystrokes/firefox/html_struct_nav_heading_in_div_with_text.py
new file mode 100644
index 0000000..de068e2
--- /dev/null
+++ b/test/keystrokes/firefox/html_struct_nav_heading_in_div_with_text.py
@@ -0,0 +1,42 @@
+#!/usr/bin/python
+
+"""Test of structural navigation by blockquote."""
+
+from macaroon.playback import *
+import utils
+
+sequence = MacroSequence()
+
+sequence.append(KeyComboAction("<Control>Home"))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("2"))
+sequence.append(utils.AssertPresentationAction(
+    "1. 2 for first heading", 
+    ["BRAILLE LINE:  'First Heading h2'",
+     "     VISIBLE:  'First Heading h2', cursor=1",
+     "SPEECH OUTPUT: 'First Heading '",
+     "SPEECH OUTPUT: 'link'",
+     "SPEECH OUTPUT: 'heading level 2'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+    "2. Down Arrow to text", 
+    ["BRAILLE LINE:  'text'",
+     "     VISIBLE:  'text', cursor=1",
+     "SPEECH OUTPUT: 'text '"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("2"))
+sequence.append(utils.AssertPresentationAction(
+    "3. 2 for second heading", 
+    ["KNOWN ISSUE: This is not the second heading. We looped.",
+     "BRAILLE LINE:  'First Heading h2'",
+     "     VISIBLE:  'First Heading h2', cursor=1",
+     "SPEECH OUTPUT: 'First Heading '",
+     "SPEECH OUTPUT: 'link'",
+     "SPEECH OUTPUT: 'heading level 2'"]))
+
+sequence.append(utils.AssertionSummaryAction())
+sequence.start()


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