Skip to content

Commit

Permalink
Skip color-space-conversion test if no ImageData (#4185)
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman authored Feb 11, 2025
1 parent fb608e6 commit 294a0e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/webgpu/util/texture/color_space_conversions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ g.test('util_matches_2d_canvas')
{ srcColorSpace: 'display-p3', dstColorSpace: 'srgb' },
] as { srcColorSpace: PredefinedColorSpace; dstColorSpace: PredefinedColorSpace }[])
)
.beforeAllSubcases(t => {
t.skipIf(typeof ImageData === 'undefined', `ImageData does not exist in this environment`);
})
.fn(t => {
const { srcColorSpace, dstColorSpace } = t.params;

Expand Down

0 comments on commit 294a0e3

Please sign in to comment.