SpannedSubject.RubyText
Artifact: androidx.media3:media3-test-utils
public interface SpannedSubject.RubyText
Allows assertions about a span's ruby text and its position.
Summary
Public methods |
|
|---|---|
abstract SpannedSubject.AndSpanFlags |
withTextAndPosition(String text, @TextAnnotation.Position int position)Checks that at least one of the matched spans has the expected |
Public methods
withTextAndPosition
abstract SpannedSubject.AndSpanFlags withTextAndPosition(String text, @TextAnnotation.Position int position)
Checks that at least one of the matched spans has the expected text.
| Parameters | |
|---|---|
String text |
The expected text. |
@TextAnnotation.Position int position |
The expected position of the text. |
| Returns | |
|---|---|
SpannedSubject.AndSpanFlags |
A |