• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1async_test(t => {
2  performance.mark('foo');
3  t.step_timeout(() => {
4    // After a timeout, PerformanceObserver should still receive entry if using the buffered flag.
5    new PerformanceObserver(t.step_func_done(list => {
6      const entries = list.getEntries();
7      assert_equals(entries.length, 1, 'There should be 1 mark entry.');
8      assert_equals(entries[0].entryType, 'mark');
9    })).observe({type: 'mark', buffered: true});
10  }, 100);
11}, 'PerformanceObserver with buffered flag sees entry after timeout');
12