Test fixes

This commit is contained in:
Tim Schaub
2017-08-16 14:24:42 -04:00
parent 02b2cdbd27
commit 73afb656d7
13 changed files with 28 additions and 9 deletions

View File

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