[orca] Increase our same-line-test tolerance for spans from broken Gecko text
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Increase our same-line-test tolerance for spans from broken Gecko text
- Date: Fri, 26 Apr 2019 22:24:27 +0000 (UTC)
commit 4d5ffcdf2d983992f8efdceee5e75cdc2180e51c
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Apr 26 18:23:02 2019 -0400
Increase our same-line-test tolerance for spans from broken Gecko text
src/orca/scripts/web/script_utilities.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 023a178b7..6a502acda 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -1008,7 +1008,8 @@ class Utilities(script_utilities.Utilities):
start, end = span
startExtents = list(text.getRangeExtents(start, start + 1, 0))
endExtents = list(text.getRangeExtents(end - 1, end, 0))
- if not self.extentsAreOnSameLine(startExtents, endExtents):
+ delta = max(startExtents[3], endExtents[3])
+ if not self.extentsAreOnSameLine(startExtents, endExtents, delta):
msg = "FAIL: Start %s and end %s of '%s' not on same line" \
% (startExtents, endExtents, allText[start:end])
debug.println(debug.LEVEL_INFO, msg, True)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]