[orca] Get object contents of internal frames directly from the child document
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Get object contents of internal frames directly from the child document
- Date: Fri, 4 Sep 2015 17:54:48 +0000 (UTC)
commit 092b696222aa7b87783b20203c9fbacc2732ef29
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Sep 4 13:51:46 2015 -0400
Get object contents of internal frames directly from the child document
src/orca/scripts/web/script_utilities.py | 3 ++
.../keystrokes/firefox/line_nav_iframes_blogger.py | 34 +++-----------------
2 files changed, 8 insertions(+), 29 deletions(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 5b77f54..584bd4a 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -806,6 +806,9 @@ class Utilities(script_utilities.Utilities):
math = self.getMathAncestor(obj)
return [[math, 0, 1, '']]
+ if obj.getRole() == pyatspi.ROLE_INTERNAL_FRAME and obj.childCount == 1:
+ return self._getContentsForObj(obj[0], 0, boundary)
+
string, start, end = self._getTextAtOffset(obj, offset, boundary)
if not string:
return [[obj, start, end, string]]
diff --git a/test/keystrokes/firefox/line_nav_iframes_blogger.py
b/test/keystrokes/firefox/line_nav_iframes_blogger.py
index 0fb2d91..7b778f4 100644
--- a/test/keystrokes/firefox/line_nav_iframes_blogger.py
+++ b/test/keystrokes/firefox/line_nav_iframes_blogger.py
@@ -19,39 +19,15 @@ 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'"]))
+ ["BRAILLE LINE: 'After the iframe'",
+ " VISIBLE: 'After the iframe', cursor=1",
+ "SPEECH OUTPUT: 'After the iframe'"]))
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'"]))
+ "3. Line Down from the last line",
+ [""]))
sequence.append(utils.AssertionSummaryAction())
sequence.start()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]