[orca] New test case



commit 82ebee81112d41ef8a235cc49b5288957ef2dd4a
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Sep 8 22:12:36 2014 -0400

    New test case

 test/html/iframes-inside-inline-block.html         |   10 +++
 .../line_nav_iframes_in_inline_block.params        |    1 +
 .../firefox/line_nav_iframes_in_inline_block.py    |   81 ++++++++++++++++++++
 3 files changed, 92 insertions(+), 0 deletions(-)
---
diff --git a/test/html/iframes-inside-inline-block.html b/test/html/iframes-inside-inline-block.html
new file mode 100644
index 0000000..1665397
--- /dev/null
+++ b/test/html/iframes-inside-inline-block.html
@@ -0,0 +1,10 @@
+<html>
+<body>
+<p>Line 1</p>
+<div style="display: inline-block;">
+<iframe style="width: 106px; margin: 0px; height: 24px;" scrolling="no" frameborder="0"></iframe>
+<iframe style="width: 108px; height: 20px;" scrolling="no" frameborder="0"></iframe>
+</div>
+<p>Line 3</p>
+</body>
+</html>
diff --git a/test/keystrokes/firefox/line_nav_iframes_in_inline_block.params 
b/test/keystrokes/firefox/line_nav_iframes_in_inline_block.params
new file mode 100644
index 0000000..7f9e2c2
--- /dev/null
+++ b/test/keystrokes/firefox/line_nav_iframes_in_inline_block.params
@@ -0,0 +1 @@
+PARAMS=$TEST_DIR/../../html/iframes-inside-inline-block.html
diff --git a/test/keystrokes/firefox/line_nav_iframes_in_inline_block.py 
b/test/keystrokes/firefox/line_nav_iframes_in_inline_block.py
new file mode 100644
index 0000000..5e2112d
--- /dev/null
+++ b/test/keystrokes/firefox/line_nav_iframes_in_inline_block.py
@@ -0,0 +1,81 @@
+#!/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",
+    ["BRAILLE LINE:  'Line 1'",
+     "     VISIBLE:  'Line 1', cursor=1",
+     "SPEECH OUTPUT: 'Line 1'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+    "2. Line Down",
+    ["BRAILLE LINE:  ' $l'",
+     "     VISIBLE:  ' $l', cursor=0",
+     "SPEECH OUTPUT: 'document frame'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+    "3. Line Down",
+    ["BRAILLE LINE:  ' $l'",
+     "     VISIBLE:  ' $l', cursor=0",
+     "SPEECH OUTPUT: 'document frame'",
+     "SPEECH OUTPUT: 'document frame'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+    "4. Line Down",
+    ["KNOWN ISSUE: We're stuck here",
+     "BRAILLE LINE:  ' $l'",
+     "     VISIBLE:  ' $l', cursor=0",
+     "SPEECH OUTPUT: 'document frame'",
+     "SPEECH OUTPUT: 'document frame'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+    "5. Line Down",
+    ["KNOWN ISSUE: We're stuck here",
+     "BRAILLE LINE:  ' $l'",
+     "     VISIBLE:  ' $l', cursor=0",
+     "SPEECH OUTPUT: 'document frame'",
+     "SPEECH OUTPUT: 'document frame'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("<Control>End"))
+sequence.append(utils.AssertPresentationAction(
+    "6. Bottom of file",
+    ["BRAILLE LINE:  'Line 3'",
+     "     VISIBLE:  'Line 3', cursor=6",
+     "SPEECH OUTPUT: 'Line 3'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+    "7. Line Up",
+    ["BRAILLE LINE:  ' $l'",
+     "     VISIBLE:  ' $l', cursor=0",
+     "SPEECH OUTPUT: 'document frame'",
+     "SPEECH OUTPUT: 'document frame'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+    "8. Line Up",
+    ["BRAILLE LINE:  'Line 1'",
+     "     VISIBLE:  'Line 1', cursor=1",
+     "SPEECH OUTPUT: 'Line 1'"]))
+
+sequence.append(utils.AssertionSummaryAction())
+sequence.start()


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