Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /scheduler/post-task-without-signals.any.html - WPT Dashboard Interop Dashboard
- /scheduler/post-task-without-signals.any.serviceworker.html - WPT Dashboard Interop Dashboard
- /scheduler/post-task-without-signals.any.sharedworker.html - WPT Dashboard Interop Dashboard
- /scheduler/post-task-without-signals.any.worker.html - WPT Dashboard Interop Dashboard
// 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');