From 0de8b82ff9ee90839608f9a9268a4bfaee1ee2ab Mon Sep 17 00:00:00 2001 From: IagoLast Date: Wed, 26 Jul 2017 13:08:05 +0200 Subject: [PATCH] Remove console.log from tests --- test/rendering_js.test.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/test/rendering_js.test.js b/test/rendering_js.test.js index 17e7a91..2e9977b 100644 --- a/test/rendering_js.test.js +++ b/test/rendering_js.test.js @@ -21,7 +21,7 @@ describe('RenderingJS', function() { ].join('\n'); beforeEach(function() { - shader = (new carto.RendererJS({ debug: true })).render(style); + shader = (new carto.RendererJS()).render(style); }); it ("shold render layers", function() { @@ -45,7 +45,7 @@ describe('RenderingJS', function() { it ("shold render variables", function() { var style = '#test { marker-width: [testing]; }'; - shader = (new carto.RendererJS({ debug: true })).render(style); + shader = (new carto.RendererJS()).render(style); var layer = shader.getLayers()[0]; var props = layer.getStyle({testing: 2}, { 'zoom': 0, 'frame-offset': 10 }); assert( props['marker-width'] === 2); @@ -53,7 +53,7 @@ describe('RenderingJS', function() { it ("should allow filter based rendering", function() { var style = '#test { marker-width: 10; [zoom = 1] { marker-width: 1; } }'; - shader = (new carto.RendererJS({ debug: true })).render(style); + shader = (new carto.RendererJS()).render(style); var layer = shader.getLayers()[0]; var props = layer.getStyle({}, { 'zoom': 0, 'frame-offset': 10 }); assert( props['marker-width'] === 10); @@ -64,7 +64,7 @@ describe('RenderingJS', function() { it ("symbolizers should be in rendering order", function() { var style = '#test { polygon-fill: red; line-color: red; }'; style += '#test2 { line-color: red;polygon-fill: red; line-width: 10; }'; - var shader = (new carto.RendererJS({ debug: true })).render(style); + var shader = (new carto.RendererJS()).render(style); var layer0 = shader.getLayers()[0]; assert(layer0.getSymbolizers()[0] === 'polygon'); assert(layer0.getSymbolizers()[1] === 'line'); @@ -76,7 +76,7 @@ describe('RenderingJS', function() { it ("colorize should return a list of colours in same order", function() { var style = '#test { image-filters: colorize-alpha(blue, cyan, green, yellow, orange, red); }'; - var shader = (new carto.RendererJS({ debug: true })).render(style); + var shader = (new carto.RendererJS()).render(style); var layer0 = shader.getLayers()[0]; var st = layer0.getStyle({ value: 1 }, {"frame-offset": 0, "zoom": 3}); var expectedColours = [[0, 0, 255], [0, 255, 255], [0, 128, 0], [255, 255, 0], [255, 165, 0], [255, 0, 0]]; @@ -106,7 +106,7 @@ describe('RenderingJS', function() { ' [frame-offset = 2] { marker-width: 15; marker-fill-opacity: 0.02;}', '}' ].join('\n'); - var shader = (new carto.RendererJS({ debug: true })).render(css); + var shader = (new carto.RendererJS()).render(css); var markerURLs = shader.getImageURLs(); var against = ["http://localhost:8081/gal.svg", "http://upload.wikimedia.org/wikipedia/commons/4/43/Flag_of_the_Galactic_Empire.svg", "http://upload.wikimedia.org/wikipedia/commons/c/c9/Flag_of_Syldavia.svg"]; for(var i = 0; i