gpu.js/test/issues/270-cache.js
Robert Plummer b2df0ab604 fix #316
Change `HTMLImageArray` render strategy to `gl.NEAREST`, like all the others
Let `WebGL2FunctionNode` extend `WebGLFunctionNode` and lighten
Remove all the different html pages associated with tests, and just use one file to handle them and use qunit for filtering them
Bump version number
2018-06-12 14:07:41 -04:00

9 lines
388 B
JavaScript

QUnit.test('Issue #270 WebGlKernel getUniformLocation caches falsey - gpu', () => {
const kernel = new GPU.WebGLKernel('', {});
kernel.programUniformLocationCache.test = false;
kernel._webGl = {};
kernel._webGl.getUniformLocation = () => {
throw new Error('tried to get getUniformLocation when falsey');
};
QUnit.assert.equal(kernel.getUniformLocation('test'), false);
});