mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision 6340a70e8df5e850ea44436b54105f59dd5aa22e
This commit is contained in:
parent
5788e8c050
commit
7be3e2f06b
131 changed files with 3893 additions and 1852 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue