mirror of
https://github.com/servo/servo.git
synced 2025-09-15 17:38:23 +01:00
Update web-platform-tests to revision 9c2bea6dac36e36ba1f489d10c2be42160d8f34f
This commit is contained in:
parent
482923cec2
commit
5c371dd958
459 changed files with 10717 additions and 834 deletions
|
@ -44,19 +44,13 @@ promise_test(function(test) {
|
|||
assert_greater_than(entry.startTime, 0);
|
||||
assert_greater_than(entry.responseEnd, entry.startTime);
|
||||
}
|
||||
return Promise.race([
|
||||
new Promise(function(resolve) {
|
||||
return new Promise(function(resolve) {
|
||||
performance.onresourcetimingbufferfull = _ => {
|
||||
resolve('bufferfull');
|
||||
}
|
||||
performance.setResourceTimingBufferSize(expectedResources.length);
|
||||
}),
|
||||
|
||||
// Race the bufferfull event against another fetch. We should get the
|
||||
// event before this completes. This allows us to detect a failure
|
||||
// to dispatch the event without timing out the entire test.
|
||||
fetch('dummy.txt').then(resp => resp.text())
|
||||
]);
|
||||
fetch('dummy.txt');
|
||||
});
|
||||
})
|
||||
.then(function(result) {
|
||||
assert_equals(result, 'bufferfull');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue