11cb0ef41Sopenharmony_ciasync_test(t => { 21cb0ef41Sopenharmony_ci performance.mark('foo'); 31cb0ef41Sopenharmony_ci t.step_timeout(() => { 41cb0ef41Sopenharmony_ci // After a timeout, PerformanceObserver should still receive entry if using the buffered flag. 51cb0ef41Sopenharmony_ci new PerformanceObserver(t.step_func_done(list => { 61cb0ef41Sopenharmony_ci const entries = list.getEntries(); 71cb0ef41Sopenharmony_ci assert_equals(entries.length, 1, 'There should be 1 mark entry.'); 81cb0ef41Sopenharmony_ci assert_equals(entries[0].entryType, 'mark'); 91cb0ef41Sopenharmony_ci })).observe({type: 'mark', buffered: true}); 101cb0ef41Sopenharmony_ci }, 100); 111cb0ef41Sopenharmony_ci}, 'PerformanceObserver with buffered flag sees entry after timeout'); 12