diff options
Diffstat (limited to 'testing/web-platform/tests/webvtt/parsing/file-parsing/support/timings-omitted-hours.test')
-rw-r--r-- | testing/web-platform/tests/webvtt/parsing/file-parsing/support/timings-omitted-hours.test | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/web-platform/tests/webvtt/parsing/file-parsing/support/timings-omitted-hours.test b/testing/web-platform/tests/webvtt/parsing/file-parsing/support/timings-omitted-hours.test new file mode 100644 index 0000000000..8fb5858571 --- /dev/null +++ b/testing/web-platform/tests/webvtt/parsing/file-parsing/support/timings-omitted-hours.test @@ -0,0 +1,22 @@ +timings, omitted hours +<link rel="help" href="https://w3c.github.io/webvtt/#collect-a-webvtt-timestamp"> + +assert_equals(cues.length, 3); + +Array.from(cues).forEach(function(cue, index) { + assert_equals(cue.text, 'text' + index, 'Failed with cue ' + index); + assert_equals(cue.startTime, 0, 'Failed with cue ' + index); + assert_equals(cue.endTime, 1, 'Failed with cue ' + index); +}); + +=== +WEBVTT + +00:00.000 --> 00:00:01.000 +text0 + +00:00:00.000 --> 00:01.000 +text1 + +00:00.000 --> 00:01.000 +text2 |