mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
tests: subparse: add unit test for closing tag detection
</ i> should be handled like </i> https://bugzilla.gnome.org/show_bug.cgi?id=755875
This commit is contained in:
parent
7fb9cd453b
commit
0c992c5065
1 changed files with 7 additions and 1 deletions
|
@ -105,7 +105,13 @@ static SubParseInputChunk srt_input[] = {
|
|||
360 * GST_SECOND, 480 * GST_SECOND, "Rock & Roll"}, {
|
||||
"28\n00:10:00,000 --> 00:11:00,000\n"
|
||||
"<font \"#0000FF\"><joj>This is </xxx>in blue but <5</font>\n\n",
|
||||
600 * GST_SECOND, 660 * GST_SECOND, "This is in blue but <5"}
|
||||
600 * GST_SECOND, 660 * GST_SECOND, "This is in blue but <5"}, {
|
||||
/* closing tags should be recognised properly even if there's a space */
|
||||
"29\n00:11:00,000 --> 00:12:00,000\n" "<i>italics</ i>\n\n",
|
||||
660 * GST_SECOND, 720 * GST_SECOND, "<i>italics</i>"}, {
|
||||
/* closing tags should be escaped and fixed up if not recognised */
|
||||
"30\n00:12:00,000 --> 00:12:01,000\n" "<i>italics</ x>\n\n",
|
||||
720 * GST_SECOND, 721 * GST_SECOND, "<i>italics</ x></i>"},
|
||||
};
|
||||
|
||||
/* starts with chunk number 0 (not exactly according to spec) */
|
||||
|
|
Loading…
Reference in a new issue