From cbe097c0cbe5557cc7806e27bfb34d4e923c0674 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Wed, 16 Jul 2014 12:02:58 +0200 Subject: [PATCH] In the reftest analyzer, make it possible to toggle "Circle differences" with the D key It's currently possible to step through the test results using the N and P keys, and you can also switch between test and reference images with the T key. However if you want to highlight the differences, that can only be done by clicking. This has always annoyed me somewhat, so this patch adds support for toggling the differences view with the D key. --- test/resources/reftest-analyzer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/resources/reftest-analyzer.js b/test/resources/reftest-analyzer.js index 91330d879..d4f96d7d5 100644 --- a/test/resources/reftest-analyzer.js +++ b/test/resources/reftest-analyzer.js @@ -464,6 +464,9 @@ window.onload = function() { val = 1; } document.querySelector('input[name="which"][value="' + val + '"]').click(); + } else if (event.which === 68) { + // 'd' toggle differences + document.getElementById("differences").click(); } else if (event.which === 78 || event.which === 80) { // 'n' next image, 'p' previous image var select = gSelected;