From 0a66e1f5ea27eb8ba9d3c098f74ab1f971ccc731 Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Fri, 20 May 2022 12:57:22 +0200 Subject: [PATCH] Allow to have float numbers when getting image information in reftest-analyzer - outputScale can be e.g. 1.5 in real life. --- test/resources/reftest-analyzer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/resources/reftest-analyzer.js b/test/resources/reftest-analyzer.js index 3f7fafc484657..8a07f1fa9e9aa 100644 --- a/test/resources/reftest-analyzer.js +++ b/test/resources/reftest-analyzer.js @@ -225,7 +225,9 @@ window.onload = function () { }); continue; } - match = line.match(/^ {2}IMAGE[^:]*\((\d+)x(\d+)x(\d+)\): (.*)$/); + match = line.match( + /^ {2}IMAGE[^:]*\((\d+\.?\d*)x(\d+\.?\d*)x(\d+\.?\d*)\): (.*)$/ + ); if (match) { const item = gTestItems[gTestItems.length - 1]; item.images.push({