[orca] New test case



commit 2679636cd2bed4af5bafa83c43a977a6f290b1f0
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Sep 4 12:41:16 2015 -0400

    New test case

 test/html/blogger-navbar.html                      |   23 ++++++++
 .../firefox/line_nav_iframes_blogger.params        |    1 +
 .../keystrokes/firefox/line_nav_iframes_blogger.py |   57 ++++++++++++++++++++
 3 files changed, 81 insertions(+), 0 deletions(-)
---
diff --git a/test/html/blogger-navbar.html b/test/html/blogger-navbar.html
new file mode 100644
index 0000000..1276e25
--- /dev/null
+++ b/test/html/blogger-navbar.html
@@ -0,0 +1,23 @@
+<html>
+<head>
+<style>
+.Navbar iframe{display:block}
+#navbar-iframe{display:block;height:30px}
+</style>
+</head>
+<div id="navbar-iframe-container"></div>
+<script type="text/javascript" src="https://apis.google.com/js/plusone.js";></script>
+<script type="text/javascript">
+        gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() {
+          if (gapi.iframes && gapi.iframes.getContext) {
+            gapi.iframes.getContext().openChild({
+                url: 
'https://www.blogger.com/navbar.g?targetBlogID\759106705776667990876\46blogName\75Eyes-Free+Android\46publishMode\75PUBLISH_MODE_BLOGSPOT\46navbarType\75BLUE\46layoutType\75LAYOUTS\46searchRoot\75//eyes-free.blogspot.com/search\46blogLocale\75en\46v\0752\46homepageUrl\75http://eyes-free.blogspot.com/\46vt\0753838418027704573183',
+                where: document.getElementById("navbar-iframe-container"),
+                id: "navbar-iframe"
+            });
+          }
+        });
+      </script>
+<div>After the iframe</div>
+</body>
+</html>
diff --git a/test/keystrokes/firefox/line_nav_iframes_blogger.params 
b/test/keystrokes/firefox/line_nav_iframes_blogger.params
new file mode 100644
index 0000000..0139942
--- /dev/null
+++ b/test/keystrokes/firefox/line_nav_iframes_blogger.params
@@ -0,0 +1 @@
+PARAMS=$TEST_DIR/../../html/blogger-navbar.html
diff --git a/test/keystrokes/firefox/line_nav_iframes_blogger.py 
b/test/keystrokes/firefox/line_nav_iframes_blogger.py
new file mode 100644
index 0000000..0fb2d91
--- /dev/null
+++ b/test/keystrokes/firefox/line_nav_iframes_blogger.py
@@ -0,0 +1,57 @@
+#!/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("e"))
+sequence.append(utils.AssertPresentationAction(
+    "1. E for next entry",
+    ["BRAILLE LINE:  'Search  $l'",
+     "     VISIBLE:  'Search  $l', cursor=0",
+     "SPEECH OUTPUT: 'Search entry'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+    "2. Line Down",
+    ["KNOWN ISSUE: We're stuck on this line",
+     "BRAILLE LINE:  'Go to Blogger.com Search  $l Search this blog & y Click here to publicly +1 this. 
toggle button 15 More Next Blog»Create Blog Sign In internal frame'",
+     "     VISIBLE:  'Go to Blogger.com Search  $l Sea', cursor=1",
+     "SPEECH OUTPUT: 'Go to Blogger.com link.'",
+     "SPEECH OUTPUT: 'Search entry'",
+     "SPEECH OUTPUT: 'Search this blog link.'",
+     "SPEECH OUTPUT: 'clickable'",
+     "SPEECH OUTPUT: 'Click here to publicly +1 this. toggle button not pressed'",
+     "SPEECH OUTPUT: '15'",
+     "SPEECH OUTPUT: 'More link.'",
+     "SPEECH OUTPUT: 'Next Blog» link.'",
+     "SPEECH OUTPUT: 'Create Blog link.'",
+     "SPEECH OUTPUT: 'Sign In link.'",
+     "SPEECH OUTPUT: 'internal frame'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+    "3. Line Down",
+    ["KNOWN ISSUE: We're stuck on this line",
+     "BRAILLE LINE:  'Go to Blogger.com Search  $l Search this blog & y Click here to publicly +1 this. 
toggle button 15 More Next Blog»Create Blog Sign In internal frame'",
+     "     VISIBLE:  'Go to Blogger.com Search  $l Sea', cursor=1",
+     "SPEECH OUTPUT: 'Go to Blogger.com link.'",
+     "SPEECH OUTPUT: 'Search entry'",
+     "SPEECH OUTPUT: 'Search this blog link.'",
+     "SPEECH OUTPUT: 'clickable'",
+     "SPEECH OUTPUT: 'Click here to publicly +1 this. toggle button not pressed'",
+     "SPEECH OUTPUT: '15'",
+     "SPEECH OUTPUT: 'More link.'",
+     "SPEECH OUTPUT: 'Next Blog» link.'",
+     "SPEECH OUTPUT: 'Create Blog link.'",
+     "SPEECH OUTPUT: 'Sign In link.'",
+     "SPEECH OUTPUT: 'internal frame'"]))
+
+sequence.append(utils.AssertionSummaryAction())
+sequence.start()


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