[orca] New test case



commit 404c488894f760ca093c49c737da29928e518e7c
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sat May 30 18:39:17 2015 -0400

    New test case

 test/html/headings-blank.html                      |   20 ++++++++
 ..._struct_nav_headings_with_hidden_anchors.params |    1 +
 ...html_struct_nav_headings_with_hidden_anchors.py |   47 ++++++++++++++++++++
 3 files changed, 68 insertions(+), 0 deletions(-)
---
diff --git a/test/html/headings-blank.html b/test/html/headings-blank.html
new file mode 100644
index 0000000..2ffd28b
--- /dev/null
+++ b/test/html/headings-blank.html
@@ -0,0 +1,20 @@
+<html>
+<head>
+<style>
+.foo{
+       display:inline-block;
+}
+
+.foo-bar:before{
+       content:'\f007'
+}
+</style>
+</head>
+<body>
+<div>
+<h1><span class="foo foo-bar"></span>line 1</h1>
+<h1><a href="#link1" aria-hidden="true"><span class="foo"></span></a>line 2</h1>
+<h1><a href="#link2" aria-hidden="true"><span class="foo"></span></a>line 3</h1>
+</div>
+</body>
+</html>
diff --git a/test/keystrokes/firefox/html_struct_nav_headings_with_hidden_anchors.params 
b/test/keystrokes/firefox/html_struct_nav_headings_with_hidden_anchors.params
new file mode 100644
index 0000000..33d72ba
--- /dev/null
+++ b/test/keystrokes/firefox/html_struct_nav_headings_with_hidden_anchors.params
@@ -0,0 +1 @@
+PARAMS=$TEST_DIR/../../html/headings-blank.html
diff --git a/test/keystrokes/firefox/html_struct_nav_headings_with_hidden_anchors.py 
b/test/keystrokes/firefox/html_struct_nav_headings_with_hidden_anchors.py
new file mode 100644
index 0000000..57cf7e2
--- /dev/null
+++ b/test/keystrokes/firefox/html_struct_nav_headings_with_hidden_anchors.py
@@ -0,0 +1,47 @@
+#!/usr/bin/python
+
+"""Test of structural navigation by heading."""
+
+from macaroon.playback import *
+import utils
+
+sequence = MacroSequence()
+
+# 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(KeyComboAction("<Control>Home"))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("h"))
+sequence.append(utils.AssertPresentationAction(
+    "1. h for next heading",
+    ["KNOWN ISSUE: Speech is broken",
+     "BRAILLE LINE:  'line 2 h1'",
+     "     VISIBLE:  'line 2 h1', cursor=0",
+     "SPEECH OUTPUT: 'blank'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("h"))
+sequence.append(utils.AssertPresentationAction(
+    "2. h for next heading",
+    ["KNOWN ISSUE: Speech is broken",
+     "BRAILLE LINE:  'line 3 h1'",
+     "     VISIBLE:  'line 3 h1', cursor=0",
+     "SPEECH OUTPUT: 'blank'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("h"))
+sequence.append(utils.AssertPresentationAction(
+    "3. h for next heading",
+    ["KNOWN ISSUE: This is broken",
+     "BRAILLE LINE:  'Wrapping to top.'",
+     "     VISIBLE:  'Wrapping to top.', cursor=0",
+     "BRAILLE LINE:  ''",
+     "     VISIBLE:  '', cursor=0",
+     "SPEECH OUTPUT: 'Wrapping to top.' voice=system",
+     "SPEECH OUTPUT: 'blank'"]))
+
+sequence.append(utils.AssertionSummaryAction())
+sequence.start()


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