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

@@ -69,7 +69,7 @@ describe('ol.rendering.Map', function() {
});
});
it('tests the WebGL renderer', function(done) {
where('WebGL').it('tests the WebGL renderer', function(done) {
assertWebGL();
map = createMap('webgl');
map.once('postrender', function() {
@@ -92,7 +92,7 @@ describe('ol.rendering.Map', function() {
map, 'rendering/ol/expected/render-canvas.png', IMAGE_TOLERANCE, done);
});
it('tests the WebGL renderer', function(done) {
where('WebGL').it('tests the WebGL renderer', function(done) {
assertWebGL();
map = createMap('webgl');
expectResemble(
@@ -112,7 +112,7 @@ describe('ol.rendering.Map', function() {
map, 'rendering/ol/expected/pan-canvas.png', IMAGE_TOLERANCE, done);
});
it('tests the WebGL renderer', function(done) {
where('WebGL').it('tests the WebGL renderer', function(done) {
assertWebGL();
map = createMap('webgl');
map.getView().setCenter([10, 10]);
@@ -134,7 +134,7 @@ describe('ol.rendering.Map', function() {
map, 'rendering/ol/expected/rotate-canvas.png', 2.8, done);
});
it('tests the WebGL renderer', function(done) {
where('WebGL').it('tests the WebGL renderer', function(done) {
assertWebGL();
map = createMap('webgl');
map.getView().setRotation(90);
@@ -157,7 +157,7 @@ describe('ol.rendering.Map', function() {
map, 'rendering/ol/expected/zoom-canvas.png', IMAGE_TOLERANCE, done);
});
it('tests the WebGL renderer', function(done) {
where('WebGL').it('tests the WebGL renderer', function(done) {
assertWebGL();
map = createMap('webgl');
map.getView().setCenter([10, 10]);