tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

post-task-result-success.any.js (278B)


      1 // META: title=Scheduler: postTask Promise Value
      2 // META: global=window,worker
      3 'use strict';
      4 
      5 promise_test(async t => {
      6  const result = await scheduler.postTask(() => 1234);
      7  assert_equals(result, 1234);
      8 }, 'Test the task promise is resolved with the callback return value');