This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 18770 - Provide a conformance reference file
Summary: Provide a conformance reference file
Status: ASSIGNED
Alias: None
Product: TextTracks CG
Classification: Unclassified
Component: Test suite (show other bugs)
Version: unspecified
Hardware: All All
: P2 enhancement
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: This bug has no owner yet - up for the taking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-04 02:34 UTC by ubitux
Modified: 2012-11-20 07:36 UTC (History)
4 users (show)

See Also:


Attachments
SubRip capability tester (5.47 KB, application/x-subrip)
2012-09-06 00:53 UTC, ubitux
Details

Description ubitux 2012-09-04 02:34:59 UTC
It would be pretty nice if there was a WebVTT sample file; a kind of a conformance ref file making use of all the features.

Basically it could include:

 - all the different kind of timing formats possible
 - multiline events
 - nested tags (mixed with multilines?)
 - an UTF-8 BOM, mixed CRLF and classic \n
 - ruby or any other "advanced" features
 - different combinations of the special attributes (size, align, etc)
 - special cases such as multiple spaces and tabs in a sentence
 - obiwan kenobi

It's kind of useful to have a quick overview of all the features, as well as helping implementations.
Comment 1 Silvia Pfeiffer 2012-09-05 12:58:11 UTC
Agreed. That should be part of building a test set. If you have such a file, please contribute.
Comment 2 ubitux 2012-09-06 00:53:42 UTC
Created attachment 1180 [details]
SubRip capability tester

I don't have any since I'm still trying to understand the specifications.

At FFmpeg, we use the attached file for testing SubRip capabilities which has kind of a similarity with WebVTT. Note that this file is mainly designed to trigger corner cases, broken markups, mixed ASS and SubRip insanity, and stuff like that. Though, it might give you some more ideas for a potential reference file or a first base.

BTW, looking at the list I made above, I'd also like to add:

 - cue with and without cue identifiers
 - a big header (with multiple -mixed- \n and CLRF before the first cue)
 - special characters (cue with an escaped "-->" in the payload for example)

I'm willing to complete with more ideas if someone can provide a first valid sample.
Comment 3 Ian 'Hixie' Hickson 2012-11-19 18:24:44 UTC
If what you want is a test suite, then I agree we need one, but I am not planning on putting one in the spec itself or writing it myself.

If what you want is examples, I'll keep adding some as I get inspiration...
Comment 4 contributor 2012-11-19 18:25:55 UTC
Checked in as WHATWG revision r7510.
Check-in comment: More examples of WebVTT.
http://html5.org/tools/web-apps-tracker?from=7509&to=7510
Comment 5 Silvia Pfeiffer 2012-11-20 07:36:54 UTC
We now have a "test suite" component, so I'm moving this bug under this component.