chromium/third_party/blink/web_tests/wpt_internal/webgpu/canvas_webgpu_transfer/transferToGPUTexture-unbalanced-access.https.worker.js

// META: global=worker

// ============================================================================

importScripts("/resources/testharness.js");
importScripts("./webgpu-helpers.js");

// This test parallels transferToGPUTexture-unbalanced-access.https.html.
promise_test(() => {
    return with_webgpu((adapter, adapterInfo, device) => {
      return test_transferToGPUTexture_unbalanced_access(
          adapterInfo,
          device,
          new OffscreenCanvas(50, 50));
    });
  },
  'Unbalanced calls to transferToGPUTexture() in a worker will destroy the ' +
  'old WebGPU access texture.'
);

done();