const { assert, skip, test, module: describe, only } = require('qunit'); const { GPU } = require('../../src'); describe('issue #378'); function testOnlyFirstIterationSafari(mode) { const gpu = new GPU({ mode: mode }); const conflictingName = 0.4; const kernel = gpu.createKernel(function(iter) { let sum = 0; for(let i=2; i { testOnlyFirstIterationSafari('webgl'); }); (GPU.isWebGL2Supported ? test : skip)('Issue #378 - only first iteration safari webgl2', () => { testOnlyFirstIterationSafari('webgl2'); }); (GPU.isHeadlessGLSupported ? test : skip)('Issue #378 - only first iteration safari headlessgl', () => { testOnlyFirstIterationSafari('headlessgl'); });