SpannedSubject.EmphasizedText


interface SpannedSubject.EmphasizedText


Allows assertions about a span's text emphasis mark and its position.

Summary

Public functions

SpannedSubject.AndSpanFlags!
withMarkAndPosition(
    @TextEmphasisSpan.MarkShape markShape: Int,
    @TextEmphasisSpan.MarkFill markFill: Int,
    @TextAnnotation.Position position: Int
)

Checks that at least one of the matched spans has the expected mark and position.

Public functions

withMarkAndPosition

fun withMarkAndPosition(
    @TextEmphasisSpan.MarkShape markShape: Int,
    @TextEmphasisSpan.MarkFill markFill: Int,
    @TextAnnotation.Position position: Int
): SpannedSubject.AndSpanFlags!

Checks that at least one of the matched spans has the expected mark and position.

Parameters
@TextEmphasisSpan.MarkShape markShape: Int

The expected mark shape.

@TextEmphasisSpan.MarkFill markFill: Int

The expected mark fill style.

@TextAnnotation.Position position: Int

The expected position of the mark.

Returns
SpannedSubject.AndSpanFlags!

A AndSpanFlags object for optional additional assertions on the flags.