Skip to content

Commit

Permalink
skip some samples
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jun 17, 2024
1 parent d72101f commit d05b6c8
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions test/puppeteer.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,21 @@ if (args.threejs || args.webgpuSamples) {
// Some strange bug, even without webgpu-debug-helper these
// examples fail in puppeteer.
const skip = [
//'webgpu_instancing_morph.html',
//'webgpu_loader_gltf_compressed.html',
//'webgpu_materials.html',
//'webgpu_morphtargets.html',
//'webgpu_morphtargets_face.html',
//'webgpu_sandbox.html',
//'webgpu_video_panorama.html',
// three.js
'webgpu_instancing_morph.html',
'webgpu_loader_gltf_compressed.html',
'webgpu_materials.html',
'webgpu_morphtargets.html',
'webgpu_morphtargets_face.html',
'webgpu_sandbox.html',
'webgpu_video_panorama.html',

// webgpu-samples
'computeBoids',
'cornell',
'imageBlur',
'skinnedMesh',
'videoUploadingWebCodecs',
];
tests.length = 0; // clear tests

Expand All @@ -86,7 +94,7 @@ if (args.threejs || args.webgpuSamples) {
const dir = path.join(__dirname, '..', '..', 'webgpu-samples', 'out', 'sample');
tests.push(
...fs.readdirSync(dir)
.filter(f => exists(path.join(dir, f, 'index.html')))
.filter(f => exists(path.join(dir, f, 'index.html')) && !skip.includes(f))
.map((f, i) => ({
url: `http://localhost:${port}/sample/${f}/index.html`,
js: exampleInjectJS,
Expand Down

0 comments on commit d05b6c8

Please sign in to comment.