Skip to content

Commit 64b4dfc

Browse files
Skip some requestAdapter_invalid_featureLevel tests in compat-only (#4373)
1 parent 8aebf4e commit 64b4dfc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/webgpu/api/operation/adapter/requestAdapter.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ values and then checks the result to test the adapter for basic functionality.
1515
`;
1616

1717
import { Fixture } from '../../../../common/framework/fixture.js';
18+
import { globalTestConfig } from '../../../../common/framework/test_config.js';
1819
import { makeTestGroup } from '../../../../common/framework/test_group.js';
1920
import { getGPU } from '../../../../common/util/navigator_gpu.js';
2021
import { assert, objectEquals, iterRange } from '../../../../common/util/util.js';
@@ -132,6 +133,11 @@ g.test('requestAdapter_invalid_featureLevel')
132133
.params(u => u.combine('featureLevel', [...validFeatureLevels, ...invalidFeatureLevels]))
133134
.fn(async t => {
134135
const { featureLevel } = t.params;
136+
t.skipIf(
137+
globalTestConfig.compatibility && (featureLevel === undefined || featureLevel === 'core'),
138+
'core adapters are not available in compat-only'
139+
);
140+
135141
const adapter = await getGPU(t.rec).requestAdapter({ featureLevel });
136142

137143
if (!validFeatureLevels.includes(featureLevel)) {

0 commit comments

Comments
 (0)