[orca] New test case
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] New test case
- Date: Thu, 4 Sep 2014 18:22:11 +0000 (UTC)
commit 8a93c8ed796301cc18f7970744d3bfa23acac06d
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]