[orca] New test case



commit 35a2d6fe5efdbc1f09bbfe961faa01bde47ff4ce
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu May 28 20:06:06 2015 -0400

    New test case

 test/html/clickable-anchor.html                    |    9 +++++++
 .../html_struct_nav_heading_with_clickable.params  |    1 +
 .../html_struct_nav_heading_with_clickable.py      |   23 ++++++++++++++++++++
 3 files changed, 33 insertions(+), 0 deletions(-)
---
diff --git a/test/html/clickable-anchor.html b/test/html/clickable-anchor.html
new file mode 100644
index 0000000..55896cb
--- /dev/null
+++ b/test/html/clickable-anchor.html
@@ -0,0 +1,9 @@
+<html>
+<head>
+</head>
+<body>
+<h1>line 1</h1>
+<h1><a onclick="return false;">line 2</a></h1>
+<h1>line 3</h1>
+</body>
+</html>
diff --git a/test/keystrokes/firefox/html_struct_nav_heading_with_clickable.params 
b/test/keystrokes/firefox/html_struct_nav_heading_with_clickable.params
new file mode 100644
index 0000000..1243fe5
--- /dev/null
+++ b/test/keystrokes/firefox/html_struct_nav_heading_with_clickable.params
@@ -0,0 +1 @@
+PARAMS=$TEST_DIR/../../html/clickable-anchor.html
diff --git a/test/keystrokes/firefox/html_struct_nav_heading_with_clickable.py 
b/test/keystrokes/firefox/html_struct_nav_heading_with_clickable.py
new file mode 100644
index 0000000..28e9e5c
--- /dev/null
+++ b/test/keystrokes/firefox/html_struct_nav_heading_with_clickable.py
@@ -0,0 +1,23 @@
+#!/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 not speaking the initial letter",
+     "BRAILLE LINE:  'line 2 h1'",
+     "     VISIBLE:  'line 2 h1', cursor=1",
+     "SPEECH OUTPUT: 'ine 2'",
+     "SPEECH OUTPUT: 'link heading level 1 clickable'"]))
+
+sequence.append(utils.AssertionSummaryAction())
+sequence.start()


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