mkvtoolnix/tests/test-724webvtt_flexible_timestamp_formats.rb
Moritz Bunkus 29e8c6e05d
WebVTT parser: accept hours > 99; be more flexible wrt. whitespace & hours digits
The specs say that hours must be at least two digits, meaning more
than 99 hours must be supported.

The specs also contain suggested ways for parsers to be a bit more
lenient with certain aspects of the timestamps:

1. Spaces & tabs at the start of the line are OK.
2. Arbitrary number of space & tabs around the arrow are OK.
3. The hours component can also be one digit only.

Fixes & implements #3139.
2021-06-19 11:03:54 +02:00

7 lines
194 B
Ruby
Executable File

#!/usr/bin/ruby -w
# T_724webvtt_flexible_timestamp_formats
describe "mkvmerge / WebVTT, more flexible parsing of timestamps"
test_merge "data/subtitles/webvtt/flexible_timestamp_formats.vtt"