[Pkg-javascript-commits] [pdf.js] 181/207: In the reftest analyzer, make it possible to toggle "Circle differences" with the D key
    David Prévot 
    taffit at moszumanska.debian.org
       
    Mon Jul 28 15:36:46 UTC 2014
    
    
  
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit cbe097c0cbe5557cc7806e27bfb34d4e923c0674
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Wed Jul 16 12:02:58 2014 +0200
    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.
---
 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 91330d8..d4f96d7 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;
-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
    
    
More information about the Pkg-javascript-commits
mailing list