Add rendering tests
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user