Update web-platform-tests to revision 4984b190341b535c645729b8f99247aace0022fe

This commit is contained in:
WPT Sync Bot 2018-12-17 21:06:57 -05:00
parent 9ca6768a56
commit d61756ac9d
73 changed files with 1198 additions and 1135 deletions

View file

@ -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');