Browse Source

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 <kbd>N</kbd> and <kbd>P</kbd> keys, and you can also switch between test and reference images with the <kbd>T</kbd> 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 <kbd>D</kbd> key.
Jonas Jenwald 11 years ago
parent
commit
cbe097c0cb
  1. 3
      test/resources/reftest-analyzer.js

3
test/resources/reftest-analyzer.js

@ -464,6 +464,9 @@ window.onload = function() { @@ -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;

Loading…
Cancel
Save