Add tests for WebGL TextReplay

This commit is contained in:
GaborFarkas
2017-06-07 16:13:11 +02:00
parent 7b9833fdce
commit a3a443324d
4 changed files with 221 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -102,5 +102,18 @@ describe('ol.rendering.style.Text', function() {
expectResemble(map, 'spec/ol/style/expected/text-rotated-canvas.png', IMAGE_TOLERANCE, done);
});
it('tests the webgl renderer without rotation', function(done) {
map = createMap('webgl');
createFeatures();
expectResemble(map, 'spec/ol/style/expected/text-webgl.png', IMAGE_TOLERANCE, done);
});
it('tests the webgl renderer with rotation', function(done) {
map = createMap('webgl');
createFeatures();
map.getView().setRotation(Math.PI / 7);
expectResemble(map, 'spec/ol/style/expected/text-rotated-webgl.png', 1.6, done);
});
});
});