From 383a1a330a61a734096b28ae1fed01b4c2ab2184 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Tue, 25 Apr 2017 10:43:07 +0200 Subject: [PATCH] Test with buffer-size 0 --- test/acceptance/buffer-size-format.js | 12 ++++++------ ...er-size-1.png => tile-7.64.48-buffer-size-0.png} | Bin 2 files changed, 6 insertions(+), 6 deletions(-) rename test/fixtures/buffer-size/{tile-7.64.48-buffer-size-1.png => tile-7.64.48-buffer-size-0.png} (100%) diff --git a/test/acceptance/buffer-size-format.js b/test/acceptance/buffer-size-format.js index b311d01d..1e84f417 100644 --- a/test/acceptance/buffer-size-format.js +++ b/test/acceptance/buffer-size-format.js @@ -50,11 +50,11 @@ function createMapConfig (bufferSize) { describe('buffer size per format', function () { var testCases = [ { - desc: 'should get png tile using buffer-size 1', + desc: 'should get png tile using buffer-size 0', coords: { z: 7, x: 64, y: 48 }, format: 'png', - fixturePath: './test/fixtures/buffer-size/tile-7.64.48-buffer-size-1.png', - mapConfig: createMapConfig({ png: 1, 'grid.json': 1 }), + fixturePath: './test/fixtures/buffer-size/tile-7.64.48-buffer-size-0.png', + mapConfig: createMapConfig({ png: 0, 'grid.json': 0 }), assert: function (tile, callback) { assert.imageIsSimilarToFile(tile, this.fixturePath, IMAGE_TOLERANCE_PER_MIL, callback); } @@ -70,11 +70,11 @@ describe('buffer size per format', function () { } }, { - desc: 'should get mvt tile using buffer-size 1', + desc: 'should get mvt tile using buffer-size 0', coords: { z: 7, x: 64, y: 48 }, format: 'mvt', - fixturePath: './test/fixtures/buffer-size/tile-7.64.48-buffer-size-1.png', - mapConfig: createMapConfig({ mvt: 1 }), + fixturePath: './test/fixtures/buffer-size/tile-7.64.48-buffer-size-0.png', + mapConfig: createMapConfig({ mvt: 0 }), assert: function (tile, callback) { var tileJSON = tile.toJSON(); var features = tileJSON[0].features; diff --git a/test/fixtures/buffer-size/tile-7.64.48-buffer-size-1.png b/test/fixtures/buffer-size/tile-7.64.48-buffer-size-0.png similarity index 100% rename from test/fixtures/buffer-size/tile-7.64.48-buffer-size-1.png rename to test/fixtures/buffer-size/tile-7.64.48-buffer-size-0.png