Commit 8e26505e by ibaker Committed by Oliver Woodman

Fix what I think is a typo in WebVTT test data

Without the CSS tweak the additional test assertion fails.

PiperOrigin-RevId: 288698323
parent 762bc18a
WEBVTT
STYLE
::cue(\n#id ){text-decoration:underline;}
::cue(#id ){text-decoration:underline;}
STYLE
::cue(#id.class1.class2 ){ color: violet;}
......
......@@ -326,6 +326,7 @@ public class WebvttDecoderTest {
public void testWithComplexCssSelectors() throws Exception {
WebvttSubtitle subtitle = getSubtitleForTestAsset(WITH_CSS_COMPLEX_SELECTORS);
Spanned firstCueText = getUniqueSpanTextAt(subtitle, /* timeUs= */ 0);
assertThat(firstCueText).hasUnderlineSpanBetween(0, firstCueText.length());
assertThat(firstCueText)
.hasForegroundColorSpanBetween(
"This should be underlined and ".length(), firstCueText.length())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment