Add rendering tests

This commit is contained in:
Andreas Hocevar
2017-07-24 18:36:08 +02:00
parent 719abf7265
commit dd914ef635
6 changed files with 60 additions and 0 deletions

View File

@@ -119,6 +119,23 @@ describe('ol.rendering.style.RegularShape', function() {
expectResemble(map, 'spec/ol/style/expected/regularshape-canvas.png', 9.4, done);
});
it('supports lineDash', function(done) {
map = createMap('canvas');
createFeatures(new ol.style.Stroke({
lineDash: [10, 5]
}));
expectResemble(map, 'spec/ol/style/expected/regularshape-canvas-linedash.png', 5, done);
});
it('supports lineDashOffset', function(done) {
map = createMap('canvas');
createFeatures(new ol.style.Stroke({
lineDash: [10, 5],
lineDashOffset: 5
}));
expectResemble(map, 'spec/ol/style/expected/regularshape-canvas-linedashoffset.png', 5, done);
});
it('tests the WebGL renderer', function(done) {
assertWebGL();
map = createMap('webgl');