Tests that expect an ‘error’ event (due to invalid signature) are:
./signature-invalid.html ./support/*.vtt
Other tests are generated from source files with a custom format. The source files are:
./support/*.test
===
line contains JS assertions.\x00
, \r
.Requirements: Python 3.2 or newer
$ python3 tools/build.py
There is also a python implementation of the WebVTT file parser algorithm and a script to create a test coverage report of this implementation, under tools/
.
Requirements:
Installing Coverage.py using pip.
$ pip3 install coverage
Generating the report:
$ python3 spec_report.py
Will output report.html
.