[orca] New test case



commit db0c25a62afb3676000e327440cbbf89db936174
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sat May 30 17:31:46 2015 -0400

    New test case

 test/html/offscreen-text-with-tiny-width.html      |    8 +++
 .../line_nav_offscreen_text_with_tiny_width.params |    1 +
 .../line_nav_offscreen_text_with_tiny_width.py     |   52 ++++++++++++++++++++
 3 files changed, 61 insertions(+), 0 deletions(-)
---
diff --git a/test/html/offscreen-text-with-tiny-width.html b/test/html/offscreen-text-with-tiny-width.html
new file mode 100644
index 0000000..8a0e627
--- /dev/null
+++ b/test/html/offscreen-text-with-tiny-width.html
@@ -0,0 +1,8 @@
+<html>
+<head></head>
+<body>
+<div style="position:absolute; left:0px; top:-500px; width:1px;height:1px; overflow:hidden;">
+This should all be a single line, but it's not because of CSS. Boo!
+</div>
+</body>
+</html>
diff --git a/test/keystrokes/firefox/line_nav_offscreen_text_with_tiny_width.params 
b/test/keystrokes/firefox/line_nav_offscreen_text_with_tiny_width.params
new file mode 100644
index 0000000..93e859b
--- /dev/null
+++ b/test/keystrokes/firefox/line_nav_offscreen_text_with_tiny_width.params
@@ -0,0 +1 @@
+PARAMS=$TEST_DIR/../../html/offscreen-text-with-tiny-width.html
diff --git a/test/keystrokes/firefox/line_nav_offscreen_text_with_tiny_width.py 
b/test/keystrokes/firefox/line_nav_offscreen_text_with_tiny_width.py
new file mode 100644
index 0000000..7fa83e8
--- /dev/null
+++ b/test/keystrokes/firefox/line_nav_offscreen_text_with_tiny_width.py
@@ -0,0 +1,52 @@
+#!/usr/bin/python
+
+"""Test of line navigation output of Firefox."""
+
+from macaroon.playback import *
+import utils
+
+sequence = MacroSequence()
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("<Control>Home"))
+sequence.append(utils.AssertPresentationAction(
+    "1. Top of file",
+    ["KNOWN ISSUE: This should be a single line, but Gecko tells us it is not because of CSS",
+     "BRAILLE LINE:  'This'",
+     "     VISIBLE:  'This', cursor=1",
+     "SPEECH OUTPUT: 'This'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+    "2. Line Down",
+    ["BRAILLE LINE:  'should'",
+     "     VISIBLE:  'should', cursor=1",
+     "SPEECH OUTPUT: 'should'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+    "3. Line Down",
+    ["BRAILLE LINE:  'all'",
+     "     VISIBLE:  'all', cursor=1",
+     "SPEECH OUTPUT: 'all'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+    "4. Line Up",
+    ["BRAILLE LINE:  'should'",
+     "     VISIBLE:  'should', cursor=1",
+     "SPEECH OUTPUT: 'should'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+    "5. Line Up",
+    ["BRAILLE LINE:  'This'",
+     "     VISIBLE:  'This', cursor=1",
+     "SPEECH OUTPUT: 'This'"]))
+
+sequence.append(utils.AssertionSummaryAction())
+sequence.start()


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