Skip to content

Commit

Permalink
Allow to have float numbers when getting image information in reftest…
Browse files Browse the repository at this point in the history
…-analyzer

- outputScale can be e.g. 1.5 in real life.
  • Loading branch information
calixteman committed May 20, 2022
1 parent 60e9065 commit 0a66e1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/resources/reftest-analyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 0a66e1f

Please sign in to comment.