mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Update web-platform-tests to revision acdb8bf3e4714528b6b5f9ff038dc80ee4fb7dcf
This commit is contained in:
parent
56a7981c9c
commit
93b883e1db
27 changed files with 1021 additions and 165 deletions
|
@ -107,10 +107,9 @@ function t(desc, func, expect) {
|
|||
var img = document.querySelector('[data-desc="' + desc + '"]');
|
||||
img.onload = img.onerror = this.unreached_func('update the image data was run');
|
||||
if (expect == 'timeout') {
|
||||
setTimeout(this.step_func_done(), 250);
|
||||
setTimeout(this.step_func_done(), 1000);
|
||||
} else {
|
||||
img['on' + expect] = this.step_func_done(function() {});
|
||||
setTimeout(this.unreached_func('update the image data was not run'), 250)
|
||||
}
|
||||
func.call(this, img);
|
||||
}, desc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue