mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Update web-platform-tests to revision 6fa9de7201cd41564d02c3edd62365aeb40e171b
This commit is contained in:
parent
60f1ffc5a7
commit
dc1f7ba3ec
124 changed files with 2052 additions and 849 deletions
|
@ -0,0 +1,19 @@
|
|||
async_test(t => {
|
||||
if (!window.PerformanceLongTaskTiming) {
|
||||
assert_unreached("Longtasks are not supported.");
|
||||
}
|
||||
new PerformanceObserver(t.step_func(entryList => {
|
||||
const observer = new PerformanceObserver(t.step_func_done(list => {
|
||||
list.getEntries().forEach(entry => {
|
||||
assert_not_equals(entry.entryType, 'longtask');
|
||||
});
|
||||
}));
|
||||
observer.observe({type: 'longtask', buffered: true});
|
||||
observer.observe({type: 'mark'});
|
||||
// Create a mark to ensure the |observer|'s callback is dispatched.
|
||||
performance.mark('a');
|
||||
})).observe({entryTypes: ['longtask']});
|
||||
// Create a long task.
|
||||
const begin = window.performance.now();
|
||||
while (window.performance.now() < begin + 60);
|
||||
}, 'PerformanceObserver with buffered flag cannot see previous longtask entries.');
|
Loading…
Add table
Add a link
Reference in a new issue