[orca] New test



commit 776db69e3f8b58e100053df78f78bad50aad1e2f
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Sep 15 01:28:04 2014 -0400

    New test

 test/html/gear.png                                 |  Bin 0 -> 750 bytes
 test/html/images-in-table-and-floating-div.html    |   26 +++++++
 test/html/view-classic.gif                         |  Bin 0 -> 85 bytes
 ...ine_nav_images_in_table_and_floating_div.params |    1 +
 .../line_nav_images_in_table_and_floating_div.py   |   72 ++++++++++++++++++++
 5 files changed, 99 insertions(+), 0 deletions(-)
---
diff --git a/test/html/gear.png b/test/html/gear.png
new file mode 100644
index 0000000..8c9b7e3
Binary files /dev/null and b/test/html/gear.png differ
diff --git a/test/html/images-in-table-and-floating-div.html b/test/html/images-in-table-and-floating-div.html
new file mode 100644
index 0000000..d177706
--- /dev/null
+++ b/test/html/images-in-table-and-floating-div.html
@@ -0,0 +1,26 @@
+<html>
+<body>
+<div>Start</div>
+<div style="margin:1.2em 0 5em">
+<div style="float:left">
+<table>
+<tbody>
+<tr>
+<td style="padding-right:.1em">
+<img src="view-classic.gif" style="border:none" alt="classic" height="18" width="18">
+</td>
+</tr>
+</tbody>
+</table>
+</div>
+<div style="float:right; white-space:nowrap; padding-top:.3em">
+<span style="vertical-align:-5px">
+<div style="text-indent: 0px; margin: 0px; padding: 0px; background: none repeat scroll 0% 0% transparent; 
border-style: none; float: none; line-height: normal; font-size: 1px; vertical-align: baseline; display: 
inline-block; width: 90px; height: 20px;"></div>
+</span>
+<img src="gear.png" style="width:16px;height:16px;vertical-align:middle;border:none" alt="Options">
+</div>
+</div>
+</div>
+<div>End</div>
+</body>
+</html>
diff --git a/test/html/view-classic.gif b/test/html/view-classic.gif
new file mode 100644
index 0000000..7a1c5a9
Binary files /dev/null and b/test/html/view-classic.gif differ
diff --git a/test/keystrokes/firefox/line_nav_images_in_table_and_floating_div.params 
b/test/keystrokes/firefox/line_nav_images_in_table_and_floating_div.params
new file mode 100644
index 0000000..540261a
--- /dev/null
+++ b/test/keystrokes/firefox/line_nav_images_in_table_and_floating_div.params
@@ -0,0 +1 @@
+PARAMS=$TEST_DIR/../../html/images-in-table-and-floating-div.html
diff --git a/test/keystrokes/firefox/line_nav_images_in_table_and_floating_div.py 
b/test/keystrokes/firefox/line_nav_images_in_table_and_floating_div.py
new file mode 100644
index 0000000..924da72
--- /dev/null
+++ b/test/keystrokes/firefox/line_nav_images_in_table_and_floating_div.py
@@ -0,0 +1,72 @@
+#!/usr/bin/python
+
+"""Test of presentation of lines that contain images."""
+
+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:  'Start'",
+     "     VISIBLE:  'Start', cursor=1",
+     "SPEECH OUTPUT: 'Start'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+    "2. Line Down",
+    ["BRAILLE LINE:  'classic image'",
+     "     VISIBLE:  'classic image', cursor=0",
+     "SPEECH OUTPUT: 'classic image'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+    "3. Line Down",
+    ["KNOWN ISSUE: We're re-presenting the classic image",
+     "BRAILLE LINE:  'classic image'",
+     "     VISIBLE:  'classic image', cursor=0",
+     "SPEECH OUTPUT: 'classic image'",
+     "SPEECH OUTPUT: 'Options image'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+    "4. Line Down",
+    ["KNOWN ISSUE: We're stuck",
+     "BRAILLE LINE:  'classic image'",
+     "     VISIBLE:  'classic image', cursor=0",
+     "SPEECH OUTPUT: 'classic image'",
+     "SPEECH OUTPUT: 'Options image'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("<Control>End"))
+sequence.append(utils.AssertPresentationAction(
+    "5. Bottom of file",
+    ["BRAILLE LINE:  'End'",
+     "     VISIBLE:  'End', cursor=3",
+     "SPEECH OUTPUT: 'End'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+    "6. Line Up",
+    ["BRAILLE LINE:  'classic image'",
+     "     VISIBLE:  'classic image', cursor=0",
+     "SPEECH OUTPUT: 'classic image'",
+     "SPEECH OUTPUT: 'Options image'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Up"))
+sequence.append(utils.AssertPresentationAction(
+    "7. Line Up",
+    ["BRAILLE LINE:  'Start'",
+     "     VISIBLE:  'Start', cursor=1",
+     "SPEECH OUTPUT: 'Start'"]))
+
+sequence.append(utils.AssertionSummaryAction())
+sequence.start()


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