diff --git a/layout/tools/reftest/reftest-analyzer.xhtml b/layout/tools/reftest/reftest-analyzer.xhtml index f5f306b50aa..06addaba380 100644 --- a/layout/tools/reftest/reftest-analyzer.xhtml +++ b/layout/tools/reftest/reftest-analyzer.xhtml @@ -229,14 +229,16 @@ function process_log(contents) { random: (random == "(EXPECTED RANDOM)"), skip: (extra == " (SKIP)"), url: url, - images: [] + images: [], + imageLabels: [] }); continue; } - match = line.match(/^ IMAGE[^:]*: (.*)$/); + match = line.match(/^ IMAGE([^:]*): (.*)$/); if (match) { var item = gTestItems[gTestItems.length - 1]; - item.images.push(match[1]); + item.images.push(match[2]); + item.imageLabels.push(match[1]); } } @@ -335,6 +337,9 @@ function show_images(i) { ID("image2").setAttributeNS(XLINK_NS, "xlink:href", item.images[1]); // Making the href be #image2 doesn't seem to work ID("feimage2").setAttributeNS(XLINK_NS, "xlink:href", item.images[1]); + + ID("label1").textContent = 'Image ' + item.imageLabels[0]; + ID("label2").textContent = 'Image ' + item.imageLabels[1]; } cell.style.display = ""; @@ -505,8 +510,8 @@ function show_pixelinfo(x, y, pix1rgb, pix1hex, pix2rgb, pix2hex) {