summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/scheduler/post-task-without-signals.any.js
blob: f5fe3e11a66e6432ce4c9f532b07c8377e8e8aed (plain)
1
2
3
4
5
6
7
8
9
10
// 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');