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

@@ -138,6 +138,7 @@ describe('ol.render', function() {
});
it('supports lineDash styles', function(done) {
var context = getContext();
var vectorContext = ol.render.toContext(context, {size: [100, 100]});
var style = new ol.style.Style({
@@ -154,11 +155,12 @@ describe('ol.render', function() {
]));
resembleCanvas(context.canvas,
'spec/ol/expected/render-polygon-linedash.png', IMAGE_TOLERANCE, done);
'rendering/ol/expected/render-polygon-linedash.png', IMAGE_TOLERANCE, done);
});
it('supports lineDashOffset', function(done) {
var context = getContext();
var vectorContext = ol.render.toContext(context, {size: [100, 100]});
var style = new ol.style.Style({
@@ -176,7 +178,7 @@ describe('ol.render', function() {
]));
resembleCanvas(context.canvas,
'spec/ol/expected/render-polygon-linedashoffset.png', IMAGE_TOLERANCE, done);
'rendering/ol/expected/render-polygon-linedashoffset.png', IMAGE_TOLERANCE, done);
});