mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Fix 'unused return value' error in SubtitleViewUtilsTest
PiperOrigin-RevId: 568170342
This commit is contained in:
parent
916b4b0ad7
commit
d965516dc9
1 changed files with 4 additions and 2 deletions
|
|
@ -71,7 +71,8 @@ public class SubtitleViewUtilsTest {
|
|||
RubySpan expectedRubySpan = originalText.getSpans(0, originalText.length(), RubySpan.class)[0];
|
||||
assertThat(strippedText)
|
||||
.hasRubySpanBetween(
|
||||
originalText.getSpanStart(expectedRubySpan), originalText.getSpanEnd(expectedRubySpan));
|
||||
originalText.getSpanStart(expectedRubySpan), originalText.getSpanEnd(expectedRubySpan))
|
||||
.withTextAndPosition(expectedRubySpan.rubyText, expectedRubySpan.position);
|
||||
HorizontalTextInVerticalContextSpan expectedHorizontalTextInVerticalContextSpan =
|
||||
originalText
|
||||
.getSpans(0, originalText.length(), HorizontalTextInVerticalContextSpan.class)[0];
|
||||
|
|
@ -117,7 +118,8 @@ public class SubtitleViewUtilsTest {
|
|||
RubySpan expectedRubySpan = originalText.getSpans(0, originalText.length(), RubySpan.class)[0];
|
||||
assertThat(strippedText)
|
||||
.hasRubySpanBetween(
|
||||
originalText.getSpanStart(expectedRubySpan), originalText.getSpanEnd(expectedRubySpan));
|
||||
originalText.getSpanStart(expectedRubySpan), originalText.getSpanEnd(expectedRubySpan))
|
||||
.withTextAndPosition(expectedRubySpan.rubyText, expectedRubySpan.position);
|
||||
HorizontalTextInVerticalContextSpan expectedHorizontalTextInVerticalContextSpan =
|
||||
originalText
|
||||
.getSpans(0, originalText.length(), HorizontalTextInVerticalContextSpan.class)[0];
|
||||
|
|
|
|||
Loading…
Reference in a new issue