summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/scheduler/post-task-result-success.any.js
blob: dd73c148e903258ff77862be81ae89505ffe9356 (plain)
1
2
3
4
5
6
7
8
// META: title=Scheduler: postTask Promise Value
// META: global=window,worker
'use strict';

promise_test(async t => {
  const result = await scheduler.postTask(() => 1234);
  assert_equals(result, 1234);
}, 'Test the task promise is resolved with the callback return value');