[orca] New test cases
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] New test cases
- Date: Fri, 29 May 2015 19:31:29 +0000 (UTC)
commit 6fa1665fd7fba4aa951f452cd41f92c1949e2bd4
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri May 29 15:31:03 2015 -0400
New test cases
test/html/heading-with-child-text.html | 9 ++++++++
test/html/link-with-child-text.html | 19 +++++++++++++++++
.../html_struct_nav_heading_with_child_text.params | 1 +
.../html_struct_nav_heading_with_child_text.py | 22 ++++++++++++++++++++
.../html_struct_nav_link_with_child_text.params | 1 +
.../html_struct_nav_link_with_child_text.py | 20 ++++++++++++++++++
6 files changed, 72 insertions(+), 0 deletions(-)
---
diff --git a/test/html/heading-with-child-text.html b/test/html/heading-with-child-text.html
new file mode 100644
index 0000000..6903abe
--- /dev/null
+++ b/test/html/heading-with-child-text.html
@@ -0,0 +1,9 @@
+<html>
+<head>
+</head>
+<body>
+<h1>line 1</h1>
+<h1><time datetime="2015-05-29">line 2</time></h2>
+<h1>line 3</h1>
+</body>
+</html>
diff --git a/test/html/link-with-child-text.html b/test/html/link-with-child-text.html
new file mode 100644
index 0000000..8b2b62b
--- /dev/null
+++ b/test/html/link-with-child-text.html
@@ -0,0 +1,19 @@
+<html>
+<head>
+<style>
+.item{
+ width:24px;
+ height:24px;
+ float:left;
+ background-image:url(checked.gif);
+ background-repeat: no-repeat;
+}
+</style>
+</head>
+<body>
+<div>line 1</div>
+<div>
+<a href="foo"><i class="item"></i><span>line 2</span></a>
+</div>
+</body>
+</html>
diff --git a/test/keystrokes/firefox/html_struct_nav_heading_with_child_text.params
b/test/keystrokes/firefox/html_struct_nav_heading_with_child_text.params
new file mode 100644
index 0000000..56789ba
--- /dev/null
+++ b/test/keystrokes/firefox/html_struct_nav_heading_with_child_text.params
@@ -0,0 +1 @@
+PARAMS=$TEST_DIR/../../html/heading-with-child-text.html
diff --git a/test/keystrokes/firefox/html_struct_nav_heading_with_child_text.py
b/test/keystrokes/firefox/html_struct_nav_heading_with_child_text.py
new file mode 100644
index 0000000..6b927b2
--- /dev/null
+++ b/test/keystrokes/firefox/html_struct_nav_heading_with_child_text.py
@@ -0,0 +1,22 @@
+#!/usr/bin/python
+
+"""Test of structural navigation by heading."""
+
+from macaroon.playback import *
+import utils
+
+sequence = MacroSequence()
+
+sequence.append(KeyComboAction("<Control>Home"))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("h"))
+sequence.append(utils.AssertPresentationAction(
+ "1. h for next heading",
+ ["KNOWN ISSUE: We're presenting the role first because of the child text",
+ "BRAILLE LINE: 'line 2'",
+ " VISIBLE: 'line 2', cursor=1",
+ "SPEECH OUTPUT: 'heading level 1 line 2'"]))
+
+sequence.append(utils.AssertionSummaryAction())
+sequence.start()
diff --git a/test/keystrokes/firefox/html_struct_nav_link_with_child_text.params
b/test/keystrokes/firefox/html_struct_nav_link_with_child_text.params
new file mode 100644
index 0000000..037a82e
--- /dev/null
+++ b/test/keystrokes/firefox/html_struct_nav_link_with_child_text.params
@@ -0,0 +1 @@
+PARAMS=$TEST_DIR/../../html/link-with-child-text.html
diff --git a/test/keystrokes/firefox/html_struct_nav_link_with_child_text.py
b/test/keystrokes/firefox/html_struct_nav_link_with_child_text.py
new file mode 100644
index 0000000..7e4e1e9
--- /dev/null
+++ b/test/keystrokes/firefox/html_struct_nav_link_with_child_text.py
@@ -0,0 +1,20 @@
+#!/usr/bin/python
+
+from macaroon.playback import *
+import utils
+
+sequence = MacroSequence()
+
+sequence.append(KeyComboAction("<Control>Home"))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("k"))
+sequence.append(utils.AssertPresentationAction(
+ "1. k for next link",
+ ["KNOWN ISSUE: We're presenting this incorrectly because of the child text",
+ "BRAILLE LINE: 'line 2'",
+ " VISIBLE: 'line 2', cursor=0",
+ "SPEECH OUTPUT: 'blank'"]))
+
+sequence.append(utils.AssertionSummaryAction())
+sequence.start()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]