summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Heidelberg <david.heidelberg@collabora.com>2022-05-17 14:25:43 +0200
committerMarge Bot <emma+marge@anholt.net>2022-05-31 05:23:46 +0000
commit9e9478483d70dda11aea3a285cc3f923ff1cedce (patch)
treeb06383fd22c4de5e31aa94a7a3b70983ae4c0fc3
parent5e7d4a7b1df385f1e2b08b2b81d75f039e8be64b (diff)
framework/replay: recently introduced HTML tags should be in innerHTML
textContent won't pass the HTML tags which been added, so fix that. Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Signed-off-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/677>
-rw-r--r--templates/test_result.mako2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/test_result.mako b/templates/test_result.mako
index 56897da09..97e53cad0 100644
--- a/templates/test_result.mako
+++ b/templates/test_result.mako
@@ -42,7 +42,7 @@
const diff_count_rel = pixelmatch(ref_data.data, rend_data.data, diff_data.data, width, height, {threshold: 0.1})
const diff_count_abs = pixelmatch(ref_data.data, rend_data.data, diff_data.data, width, height, {threshold: 0.0})
- document.getElementById("diffPixelCount").textContent = "Different pixels: " + diff_count_abs + " <small>(no tolerance)</small>, <strong>" + diff_count_rel + "</strong> <small>(1% tol.)</small>"
+ document.getElementById("diffPixelCount").innerHTML = "Different pixels: " + diff_count_abs + " <small>(no tolerance)</small>, <strong>" + diff_count_rel + "</strong> <small>(1% tol.)</small>"
diff_ctx.putImageData(diff_data, 0, 0)
diff_complete = true