Conditionally run WebGL rendering tests

This commit is contained in:
Tim Schaub
2017-07-03 14:15:00 -06:00
parent 36f01e7b08
commit a5113715ef
11 changed files with 28 additions and 27 deletions

View File

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