mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 8a2ceb5f18911302b7a5c1cd2791f4ab50ad4326
This commit is contained in:
parent
462c272380
commit
1f531f66ea
5377 changed files with 174916 additions and 84369 deletions
|
@ -154,7 +154,14 @@ function runTests(tests) {
|
|||
t.test_id = test.name;
|
||||
t.url_encoded_input = test.input;
|
||||
t.expected = expected;
|
||||
track.src = 'data:text/vtt,'+encodeURIComponent('WEBVTT\n\n00:00.000 --> 00:01.000\n')+test.input;
|
||||
var track_blob = new Blob(['WEBVTT\n\n00:00.000 --> 00:01.000\n',
|
||||
decodeURIComponent(test.input)],
|
||||
{ type: 'text/vtt' });
|
||||
var track_url = URL.createObjectURL(track_blob);;
|
||||
track.src = track_url;
|
||||
t.add_cleanup(function() {
|
||||
URL.revokeObjectURL(track_url);
|
||||
});
|
||||
track['default'] = true;
|
||||
track.kind = 'subtitles';
|
||||
track.onload = t.step_func(trackLoaded);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue