Change getUid return type from number to string

This commit is contained in:
Frederic Junod
2018-10-17 08:58:50 +02:00
parent a85099a36b
commit 041836c645
33 changed files with 78 additions and 92 deletions
@@ -229,7 +229,7 @@ describe('ol.render.webgl.CircleReplay', function() {
replay.drawCircle(feature3.getGeometry(), feature3);
replay.startIndices.push(replay.indices.length);
const skippedFeatHash = {};
skippedFeatHash[getUid(feature2).toString()] = true;
skippedFeatHash[getUid(feature2)] = true;
replay.drawReplay(gl, context, skippedFeatHash, false);
expect(replay.setFillStyle_.calledOnce).to.be(true);
@@ -336,7 +336,7 @@ describe('ol.render.webgl.LineStringReplay', function() {
replay.drawLineString(feature3.getGeometry(), feature3);
replay.startIndices.push(replay.indices.length);
const skippedFeatHash = {};
skippedFeatHash[getUid(feature2).toString()] = true;
skippedFeatHash[getUid(feature2)] = true;
replay.drawReplay(gl, context, skippedFeatHash, false);
expect(replay.setStrokeStyle_.calledOnce).to.be(true);
@@ -457,7 +457,7 @@ describe('ol.render.webgl.PolygonReplay', function() {
replay.drawPolygon(feature3.getGeometry(), feature3);
replay.startIndices.push(replay.indices.length);
const skippedFeatHash = {};
skippedFeatHash[getUid(feature2).toString()] = true;
skippedFeatHash[getUid(feature2)] = true;
replay.drawReplay(gl, context, skippedFeatHash, false);
expect(replay.setFillStyle_.calledOnce).to.be(true);