Skip to content

Commit

Permalink
Skip color-space-conversion test if no ImageData
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Feb 11, 2025
1 parent fb608e6 commit 882e0c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/webgpu/util/texture/color_space_conversions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ g.test('util_matches_2d_canvas')
)
.fn(t => {
const { srcColorSpace, dstColorSpace } = t.params;
t.skipIf(typeof ImageData === 'undefined', `ImageData does not exist in this environment`);

// putImageData an ImageData(srcColorSpace) in to a canvas2D(dstColorSpace)
// then call getImageData. This will convert the colors via the canvas 2D API
Expand Down

0 comments on commit 882e0c5

Please sign in to comment.