chromium/third_party/blink/web_tests/wpt_internal/ai/prompt-api-shared-worker.https.window.js

// META: script=resources/workaround-for-362676838.js
// META: timeout=long

promise_test(async () => {
  const result = await new Promise(async resolve => {
    const worker = new SharedWorker("test-shared-worker.js");
    worker.port.onmessage = e => {
      resolve(e.data);
    }
  });

  assert_true(result.success, result.error);
});