Merge pull request #14945 from calixteman/devicepixels

Allow to have float numbers when getting image information in reftest-analyzer
This commit is contained in:
calixteman 2022-05-20 13:55:23 +02:00 committed by GitHub
commit 3c877f9520
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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({