Name Description Size
build.py \ <!doctype html> <!-- DO NOT EDIT! This file and %vtt_file_rel_path are generated. --> <!-- See /webvtt/parsing/file-parsing/README.md --> <meta charset=utf-8> <title>WebVTT parser test: %test_name</title> %test_headers <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <div id=log></div> <script> var t = async_test('%test_name'); t.step(function(){ var video = document.createElement('video'); var track = document.createElement('track'); assert_true('src' in track, 'track element not supported'); track.src = '%vtt_file_rel_path'; track['default'] = true; track.kind = 'subtitles'; track.onload = this.step_func(trackLoaded); track.onerror = this.step_func(trackError); video.appendChild(track); document.body.appendChild(video); }); function trackLoaded(event) { var track = event.target; var video = track.parentNode; var cues = video.textTracks[0].cues; { %test_js } this.done(); } function trackError(e) { assert_unreached('got unexpected error event'); } </script> 3474
parser.py A direct translation of the webvtt file parsing algorithm. See https://w3c.github.io/webvtt/#file-parsing for documentation 18918
spec_report.py <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Spec Coverage</title> <link rel="stylesheet" href="style.css" type="text/css"> <style> .covered { } .missed { background-color: lightcoral; } code { margin: 0; padding: 0; display:block; white-space:pre-wrap; } </style> </head> <body> %head <div><pre> %body </pre></div> </body> </html> 2565