Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

589 B
Raw Blame
<!doctype html>
<meta charset="utf-8">
<script src="/wpt/resources/testharness.js"></script>
<script src="/wpt/resources/testharnessreport.js"></script>
<script src="/wpt/resources/moli-wpt-adapter.js"></script>
<script>
promise_test(async function () {
  const order = [];
  Promise.resolve().then(function () {
    order.push("promise");
  });
  queueMicrotask(function () {
    order.push("queueMicrotask");
  });
  await Promise.resolve();
  assert_array_equals(order, ["promise", "queueMicrotask"]);
}, "Promise jobs and queueMicrotask run before promise_test completion");
</script>