From 23c2aa54d09f23dabea593498b64249cf3c7e8ad Mon Sep 17 00:00:00 2001 From: Petr Sloup Date: Thu, 25 Aug 2016 11:09:01 +0200 Subject: [PATCH] Update tests --- test/static.js | 3 ++- test/tiles_rendered.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/static.js b/test/static.js index ae7c17d..7c663e5 100644 --- a/test/static.js +++ b/test/static.js @@ -28,6 +28,8 @@ describe('Static endpoints', function() { testStatic(prefix, '0,0,0/300x300', 'png', 200, 2); testStatic(prefix, '0,0,0/300x300', 'png', 200, 3); + testStatic(prefix, '0,0,1.5/256x256', 'png', 200); + testStatic(prefix, '80,40,20/600x300', 'png', 200, 3); testStatic(prefix, '8.5,40.5,20/300x150', 'png', 200, 3); testStatic(prefix, '-8.5,-40.5,20/300x150', 'png', 200, 3); @@ -48,7 +50,6 @@ describe('Static endpoints', function() { testStatic(prefix, '0,0,0/256x256', 'png', 404, 1); testStatic(prefix, '0,0,-1/256x256', 'png', 404); - testStatic(prefix, '0,0,1.5/256x256', 'png', 404); testStatic(prefix, '0,0,0/256.5x256.5', 'png', 404); testStatic(prefix, '0,0,0,/256x256', 'png', 404); diff --git a/test/tiles_rendered.js b/test/tiles_rendered.js index 1310a9a..ff8bb0c 100644 --- a/test/tiles_rendered.js +++ b/test/tiles_rendered.js @@ -26,6 +26,7 @@ describe('Raster tiles', function() { testTile(prefix, 0, 0, 0, 'png', 200, 2); testTile(prefix, 0, 0, 0, 'png', 200, 3); testTile(prefix, 2, 1, 1, 'png', 200, 3); + testTile(prefix, 0, 0, 0, 'png', 200, 4); }); }); @@ -39,7 +40,7 @@ describe('Raster tiles', function() { testTile(prefix, 0, 0, 0, 'pbf', 400); testTile(prefix, 0, 0, 0, 'png', 404, 1); - testTile(prefix, 0, 0, 0, 'png', 404, 4); + testTile(prefix, 0, 0, 0, 'png', 404, 5); //testTile('hybrid', 0, 0, 0, 'png', 404); //TODO: test this });