Merge pull request #9896 from jahow/fix-webgl-warnings

Misc. WebGL fixes
This commit is contained in:
Olivier Guyot
2019-08-31 14:57:22 +02:00
committed by GitHub
5 changed files with 47 additions and 6 deletions

View File

@@ -75,4 +75,21 @@ describe('ol.webgl.Buffer', function() {
});
describe('#getSize', function() {
let b;
beforeEach(function() {
b = new WebGLArrayBuffer(ARRAY_BUFFER);
});
it('returns 0 when the buffer array is not initialized', function() {
expect(b.getSize()).to.be(0);
});
it('returns the size of the array otherwise', function() {
b.ofSize(12);
expect(b.getSize()).to.be(12);
});
});
});