chromium/third_party/blink/web_tests/external/wpt/scheduler/post-task-delay.any.js

// META: title=Scheduler: postTask Delayed Tasks
// META: global=window,worker
'use strict';

promise_test(async t => {
  const start = performance.now();
  return scheduler.postTask(() => {
    const elapsed = performance.now() - start;
    assert_greater_than_equal(elapsed, 10);
  }, {priority: 'user-blocking', delay: 10});
}, 'Tests basic scheduler.postTask with a delay');