Fix 'unused return value' error in SubtitleViewUtilsTest
PiperOrigin-RevId: 568170342
This commit is contained in:
parent
916b4b0ad7
commit
d965516dc9
@ -71,7 +71,8 @@ public class SubtitleViewUtilsTest {
|
|||||||
RubySpan expectedRubySpan = originalText.getSpans(0, originalText.length(), RubySpan.class)[0];
|
RubySpan expectedRubySpan = originalText.getSpans(0, originalText.length(), RubySpan.class)[0];
|
||||||
assertThat(strippedText)
|
assertThat(strippedText)
|
||||||
.hasRubySpanBetween(
|
.hasRubySpanBetween(
|
||||||
originalText.getSpanStart(expectedRubySpan), originalText.getSpanEnd(expectedRubySpan));
|
originalText.getSpanStart(expectedRubySpan), originalText.getSpanEnd(expectedRubySpan))
|
||||||
|
.withTextAndPosition(expectedRubySpan.rubyText, expectedRubySpan.position);
|
||||||
HorizontalTextInVerticalContextSpan expectedHorizontalTextInVerticalContextSpan =
|
HorizontalTextInVerticalContextSpan expectedHorizontalTextInVerticalContextSpan =
|
||||||
originalText
|
originalText
|
||||||
.getSpans(0, originalText.length(), HorizontalTextInVerticalContextSpan.class)[0];
|
.getSpans(0, originalText.length(), HorizontalTextInVerticalContextSpan.class)[0];
|
||||||
@ -117,7 +118,8 @@ public class SubtitleViewUtilsTest {
|
|||||||
RubySpan expectedRubySpan = originalText.getSpans(0, originalText.length(), RubySpan.class)[0];
|
RubySpan expectedRubySpan = originalText.getSpans(0, originalText.length(), RubySpan.class)[0];
|
||||||
assertThat(strippedText)
|
assertThat(strippedText)
|
||||||
.hasRubySpanBetween(
|
.hasRubySpanBetween(
|
||||||
originalText.getSpanStart(expectedRubySpan), originalText.getSpanEnd(expectedRubySpan));
|
originalText.getSpanStart(expectedRubySpan), originalText.getSpanEnd(expectedRubySpan))
|
||||||
|
.withTextAndPosition(expectedRubySpan.rubyText, expectedRubySpan.position);
|
||||||
HorizontalTextInVerticalContextSpan expectedHorizontalTextInVerticalContextSpan =
|
HorizontalTextInVerticalContextSpan expectedHorizontalTextInVerticalContextSpan =
|
||||||
originalText
|
originalText
|
||||||
.getSpans(0, originalText.length(), HorizontalTextInVerticalContextSpan.class)[0];
|
.getSpans(0, originalText.length(), HorizontalTextInVerticalContextSpan.class)[0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user