Closed Bug 1733514 Opened 4 months ago Closed 4 months ago

Add basic testing for text caching

Categories

(Core :: Disability Access APIs, task)

task

Tracking

()

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: Jamie, Assigned: Jamie)

References

(Blocks 1 open bug)

Details

Attachments

(5 files)

ADD XPCOM support for the HyperTextAccessibleBase methods implemented in bug 1730088. Add some basic browser tests which utilise this to test cached text and word/line start offsets.

Depends on: 1734322
Depends on: 1734540

When the cache is disabled, we need a different implementation of RemoteAccessible::CharacterCount for non-Windows.
This already existed, but it hid the base implementation rather than overriding it.
On Windows, we don't support this for RemoteAccessible at all unless the cache is enabled, so there's no change there.

This is to make way for a new Intl which returns HyperTextAccessibleBase.

Pushed by jteh@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/29a1819168be
part 1: Make HyperTextAccessibleBase::CharacterCount virtual and override it in RemoteAccessible. r=eeejay
https://hg.mozilla.org/integration/autoland/rev/4030c1053bc8
part 2: Rename RemoteAccessible::GetTextAtOffset to TextAtOffset and have it override HyperTextAccessibleBase. r=eeejay
https://hg.mozilla.org/integration/autoland/rev/f487ae5b6da2
part 3: Rename xpcAccessibleHyperText::Intl to IntlLocal. r=eeejay
https://hg.mozilla.org/integration/autoland/rev/bee58fee1d01
part 4: Add xpcAccessibleHyperText::Intl and use it for methods which are supported by HyperTextAccessibleBase. r=eeejay
https://hg.mozilla.org/integration/autoland/rev/516a599e3187
part 5: Add initial tests for a11y text caching. r=eeejay
You need to log in before you can comment on or make changes to this bug.