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

// META: title=Scheduler: Basic Functionality without Signals
// META: global=window,worker
'use strict';

promise_test(async t => {
  for (const priority of ['user-blocking', 'user-visible', 'background']) {
    const result = await scheduler.postTask(() => priority, {priority});
    assert_equals(result, priority);
  }
}, 'Basic functionality for scheduler.postTask() without using TaskSignals');