Update web-platform-tests to revision 6340a70e8df5e850ea44436b54105f59dd5aa22e

This commit is contained in:
WPT Sync Bot 2019-07-19 10:25:00 +00:00
parent 5788e8c050
commit 7be3e2f06b
131 changed files with 3893 additions and 1852 deletions

View file

@ -9,7 +9,13 @@
async_test(function(t) {
var video = document.querySelector("video");
var track = document.querySelector("track");
track.onload = t.step_func(trackLoaded);
if (track.readyState != HTMLTrackElement.LOADED) {
assert_not_equals(track.readyState, HTMLTrackElement.ERROR,
"track failed to load resource.");
track.onload = t.step_func(trackLoaded);
} else {
trackLoaded();
}
var cueCount = 0;
var textTrack;

View file

@ -128,7 +128,8 @@ function t(desc, func, expect) {
if (expect == 'timeout') {
setTimeout(this.step_func_done(), 1000);
} else {
img['on' + expect] = this.step_func_done(function() {});
img['on' + expect] = this.step_func_done();
setTimeout(this.unreached_func('update the image data didn\'t run'), 1000);
}
func.call(this, img);
}, desc);