[orca] New test case
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] New test case
- Date: Thu, 3 Sep 2015 20:33:57 +0000 (UTC)
commit d469dbbb146ba02a54a31b56dfb8dc27ba721f69
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Sep 3 16:33:09 2015 -0400
New test case
test/html/inner-iframe.html | 7 +++
test/html/outer-iframe.html | 10 ++++
.../firefox/line_nav_iframes_nested.params | 1 +
test/keystrokes/firefox/line_nav_iframes_nested.py | 56 ++++++++++++++++++++
4 files changed, 74 insertions(+), 0 deletions(-)
---
diff --git a/test/html/inner-iframe.html b/test/html/inner-iframe.html
new file mode 100644
index 0000000..b5bc19d
--- /dev/null
+++ b/test/html/inner-iframe.html
@@ -0,0 +1,7 @@
+<html>
+<head>
+</head>
+<body style="padding:0; margin:0;">
+<iframe data-gapiattached="true"
src="https://apis.google.com/se/0/_/+1/fastbutton?usegapi=1&source=blogger%3Anavbar%3Aplusone&size=medium&hl=en&origin=https%3A%2F%2Fwww.blogger.com&url=http%3A%2F%2Feyes-free.blogspot.com%2F&jsh=m%3B%2F_%2Fscs%2Fapps-static%2F_%2Fjs%2Fk%3Doz.gapi.en_US.jCMdSwYkuzY.O%2Fm%3D__features__%2Fam%3DAQ%2Frt%3Dj%2Fd%3D1%2Ft%3Dzcms%2Frs%3DAGLTcCMw5plZbpMI3ReXltphL_taOsACiA#_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart%2Concircled%2Cdrefresh%2Cerefresh%2Conload
vspace="0" tabindex="0" scrolling="no" frameborder="0" width="100%"></iframe>
+</body>
+</html>
diff --git a/test/html/outer-iframe.html b/test/html/outer-iframe.html
new file mode 100644
index 0000000..f642db2
--- /dev/null
+++ b/test/html/outer-iframe.html
@@ -0,0 +1,10 @@
+<html>
+<head></head>
+<body>
+<div>
+<iframe src="inner-iframe.html" style="display:block;height:30px;width:100%;" scrolling="no"
frameborder="0"></iframe>
+</div>
+<div>After the iframe</div>
+</body>
+</html>
+
diff --git a/test/keystrokes/firefox/line_nav_iframes_nested.params
b/test/keystrokes/firefox/line_nav_iframes_nested.params
new file mode 100644
index 0000000..5cbf4c4
--- /dev/null
+++ b/test/keystrokes/firefox/line_nav_iframes_nested.params
@@ -0,0 +1 @@
+PARAMS=$TEST_DIR/../../html/outer-iframe.html
diff --git a/test/keystrokes/firefox/line_nav_iframes_nested.py
b/test/keystrokes/firefox/line_nav_iframes_nested.py
new file mode 100644
index 0000000..0df3950
--- /dev/null
+++ b/test/keystrokes/firefox/line_nav_iframes_nested.py
@@ -0,0 +1,56 @@
+#!/usr/bin/python
+
+"""Test of line navigation output of Firefox."""
+
+from macaroon.playback import *
+import utils
+
+sequence = MacroSequence()
+
+# Work around some new quirk in Gecko that causes this test to fail if
+# run via the test harness rather than manually.
+sequence.append(KeyComboAction("<Control>r"))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("<Control>Home"))
+sequence.append(utils.AssertPresentationAction(
+ "1. Top of file",
+ ["BRAILLE LINE: 'Click here to publicly \+1 this. push button internal frame'",
+ " VISIBLE: 'Click here to publicly \+1 this. ', cursor=1",
+ "BRAILLE LINE: 'Click here to publicly \+1 this. push button [0-9]+'",
+ " VISIBLE: 'Click here to publicly \+1 this. ', cursor=1",
+ "SPEECH OUTPUT: 'Click here to publicly \+1 this. push button'",
+ "SPEECH OUTPUT: '[0-9]+'",
+ "SPEECH OUTPUT: 'internal frame'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "2. Line Down",
+ ["BRAILLE LINE: 'After the iframe'",
+ " VISIBLE: 'After the iframe', cursor=1",
+ "SPEECH OUTPUT: 'After the iframe'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("<Control>Home"))
+sequence.append(utils.AssertPresentationAction(
+ "3. Top of file",
+ ["BRAILLE LINE: 'Click here to publicly \+1 this. push button [0-9]+ internal frame'",
+ " VISIBLE: 'Click here to publicly \+1 this. ', cursor=1",
+ "SPEECH OUTPUT: 'Click here to publicly \+1 this. push button'",
+ "SPEECH OUTPUT: '[0-9]+'",
+ "SPEECH OUTPUT: 'internal frame'"]))
+
+sequence.append(utils.StartRecordingAction())
+sequence.append(KeyComboAction("Down"))
+sequence.append(utils.AssertPresentationAction(
+ "4. Line Down",
+ ["KNOWN ISSUE: We are stuck on the internal iframe",
+ "BRAILLE LINE: 'Click here to publicly \+1 this. push button [0-9]+ internal frame'",
+ " VISIBLE: 'Click here to publicly \+1 this. ', cursor=1",
+ "SPEECH OUTPUT: 'Click here to publicly \+1 this. push button'",
+ "SPEECH OUTPUT: '[0-9]+'",
+ "SPEECH OUTPUT: 'internal frame'"]))
+
+sequence.append(utils.AssertionSummaryAction())
+sequence.start()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]