From 97b0a1f21d6040bfdcfd0851f1d9b7520ca04fc7 Mon Sep 17 00:00:00 2001 From: Niklas von Hertzen Date: Thu, 10 Aug 2017 23:26:01 +0800 Subject: [PATCH] Fix reftest precision --- src/renderer/RefTestRenderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/RefTestRenderer.js b/src/renderer/RefTestRenderer.js index aa086a9..b00aca3 100644 --- a/src/renderer/RefTestRenderer.js +++ b/src/renderer/RefTestRenderer.js @@ -119,7 +119,7 @@ class RefTestRenderer implements RenderTarget { ]; const stops = gradient.colorStops.map( - stop => `${stop.color.toString()} ${Math.round(stop.stop * 100) / 100}` + stop => `${stop.color.toString()} ${Math.ceil(stop.stop * 100) / 100}` ); this.writeLine(