From 82cfcf8704760e413a035e63153e23471fb06d9e Mon Sep 17 00:00:00 2001 From: Niklas von Hertzen Date: Thu, 10 Aug 2017 21:58:56 +0800 Subject: [PATCH] Round reftest repeat values --- src/renderer/RefTestRenderer.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/renderer/RefTestRenderer.js b/src/renderer/RefTestRenderer.js index e1037fb..aa086a9 100644 --- a/src/renderer/RefTestRenderer.js +++ b/src/renderer/RefTestRenderer.js @@ -137,11 +137,11 @@ class RefTestRenderer implements RenderTarget { offsetY: number ) { this.writeLine( - `Repeat: ${this.formatImage( - image - )} [${offsetX}, ${offsetY}] Size (${imageSize.width}, ${imageSize.height}) ${this.formatPath( - path - )}` + `Repeat: ${this.formatImage(image)} [${Math.round(offsetX)}, ${Math.round( + offsetY + )}] Size (${Math.round(imageSize.width)}, ${Math.round( + imageSize.height + )}) ${this.formatPath(path)}` ); }