Bug 1659215 - Re-expose text attributes. r=morgan

Differential Revision: https://phabricator.services.mozilla.com/D87149
This commit is contained in:
Eitan Isaacson 2020-08-14 23:18:02 +00:00
parent 3489d995ee
commit 62494de24f
3 changed files with 6 additions and 9 deletions

View File

@ -349,12 +349,10 @@
#pragma mark - ParameterizedTextAttributeGetters
// Bug 1657653: This is too slow for now
// AXLengthForTextMarkerRange_
// AXLengthForTextMarkerRange
- (NSNumber* _Nullable)moxLengthForTextMarkerRange:(id _Nonnull)textMarkerRange;
// Bug 1657653: This is too slow for now
// AXStringForTextMarkerRange_
// AXStringForTextMarkerRange
- (NSString* _Nullable)moxStringForTextMarkerRange:(id _Nonnull)textMarkerRange;
// AXTextMarkerRangeForUnorderedTextMarkers
@ -378,8 +376,7 @@
// AXPreviousTextMarkerForTextMarker
- (id _Nullable)moxPreviousTextMarkerForTextMarker:(id _Nonnull)textMarker;
// Bug 1657653: This is too slow for now
// AXAttributedStringForTextMarkerRange_
// AXAttributedStringForTextMarkerRange
- (NSAttributedString* _Nullable)moxAttributedStringForTextMarkerRange:(id _Nonnull)textMarkerRange;
@end

View File

@ -13,7 +13,7 @@ loadScripts(
function stringForRange(macDoc, range) {
return macDoc.getParameterizedAttributeValue(
"AXStringForTextMarkerRange_",
"AXStringForTextMarkerRange",
range
);
}

View File

@ -57,7 +57,7 @@ function testValueChangedEventData(
textMarker
);
let str = macIface.getParameterizedAttributeValue(
"AXStringForTextMarkerRange_",
"AXStringForTextMarkerRange",
range,
"correct word before caret"
);
@ -100,7 +100,7 @@ async function synthKeyAndTestSelectionChanged(
);
let rangeString = inputEvent.macIface.getParameterizedAttributeValue(
"AXStringForTextMarkerRange_",
"AXStringForTextMarkerRange",
inputEvent.data.AXSelectedTextMarkerRange
);
is(