From 8075e3aa294f0e9d547c2022241c655b1b329ed3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Mon, 16 Sep 2019 17:39:26 +0200 Subject: [PATCH] add allowed thresholds for rendering discrepancies --- .../both-text-anchor-2x-image-2x-screen/style.json | 3 ++- .../icon-text-fit/enlargen-both-padding/style.json | 3 ++- .../render-tests/icon-text-fit/enlargen-both/style.json | 3 ++- .../render-tests/icon-text-fit/enlargen-width/style.json | 3 ++- .../style.json | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/test/integration/render-tests/icon-text-fit/both-text-anchor-2x-image-2x-screen/style.json b/test/integration/render-tests/icon-text-fit/both-text-anchor-2x-image-2x-screen/style.json index 566f3e8e06b..67e6d86be2b 100644 --- a/test/integration/render-tests/icon-text-fit/both-text-anchor-2x-image-2x-screen/style.json +++ b/test/integration/render-tests/icon-text-fit/both-text-anchor-2x-image-2x-screen/style.json @@ -4,7 +4,8 @@ "test": { "pixelRatio": 2, "width": 200, - "height": 150 + "height": 150, + "allowed": 0.001 } }, "sources": { diff --git a/test/integration/render-tests/icon-text-fit/enlargen-both-padding/style.json b/test/integration/render-tests/icon-text-fit/enlargen-both-padding/style.json index 820be4afea9..2114e648b4f 100644 --- a/test/integration/render-tests/icon-text-fit/enlargen-both-padding/style.json +++ b/test/integration/render-tests/icon-text-fit/enlargen-both-padding/style.json @@ -3,7 +3,8 @@ "metadata": { "test": { "width": 150, - "height": 64 + "height": 64, + "allowed": 0.005 } }, "sources": { diff --git a/test/integration/render-tests/icon-text-fit/enlargen-both/style.json b/test/integration/render-tests/icon-text-fit/enlargen-both/style.json index b2d1f34c721..7c76c51f153 100644 --- a/test/integration/render-tests/icon-text-fit/enlargen-both/style.json +++ b/test/integration/render-tests/icon-text-fit/enlargen-both/style.json @@ -3,7 +3,8 @@ "metadata": { "test": { "width": 128, - "height": 64 + "height": 64, + "allowed": 0.004 } }, "sources": { diff --git a/test/integration/render-tests/icon-text-fit/enlargen-width/style.json b/test/integration/render-tests/icon-text-fit/enlargen-width/style.json index 61c3d954010..00f0e293488 100644 --- a/test/integration/render-tests/icon-text-fit/enlargen-width/style.json +++ b/test/integration/render-tests/icon-text-fit/enlargen-width/style.json @@ -3,7 +3,8 @@ "metadata": { "test": { "width": 128, - "height": 64 + "height": 64, + "allowed": 0.002 } }, "sources": { diff --git a/test/integration/render-tests/text-writing-mode/point_label/mixed-multiline-vertical-horizontal-mode-icon-text-fit/style.json b/test/integration/render-tests/text-writing-mode/point_label/mixed-multiline-vertical-horizontal-mode-icon-text-fit/style.json index 6721685d90e..b1ac643172f 100644 --- a/test/integration/render-tests/text-writing-mode/point_label/mixed-multiline-vertical-horizontal-mode-icon-text-fit/style.json +++ b/test/integration/render-tests/text-writing-mode/point_label/mixed-multiline-vertical-horizontal-mode-icon-text-fit/style.json @@ -3,7 +3,8 @@ "metadata": { "test": { "height": 128, - "width": 128 + "width": 128, + "allowed": 0.0005 } }, "center": [ 0, 0 ],