Skip to content

Commit 3c877f9

Browse files
authored
Merge pull request #14945 from calixteman/devicepixels
Allow to have float numbers when getting image information in reftest-analyzer
2 parents 60e9065 + 0a66e1f commit 3c877f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/resources/reftest-analyzer.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,9 @@ window.onload = function () {
225225
});
226226
continue;
227227
}
228-
match = line.match(/^ {2}IMAGE[^:]*\((\d+)x(\d+)x(\d+)\): (.*)$/);
228+
match = line.match(
229+
/^ {2}IMAGE[^:]*\((\d+\.?\d*)x(\d+\.?\d*)x(\d+\.?\d*)\): (.*)$/
230+
);
229231
if (match) {
230232
const item = gTestItems[gTestItems.length - 1];
231233
item.images.push({

0 commit comments

Comments
 (0)