Created
March 4, 2015 15:52
-
-
Save jorupp/b99522397504283c9ba1 to your computer and use it in GitHub Desktop.
Execute the JS tests from the Chrome Accessibility Developer Tools via the browser console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.getScript('https://rawgit.com/GoogleChrome/accessibility-developer-tools/stable/dist/js/axs_testing.js', (function() { var r = axs.Audit.run(function() { var c = new axs.AuditConfiguration; c.scope = $("body")[0]; return c; }()); console.log(axs.Audit.createReport(r)); var rr = {}; for(var i in r) { rr[r[i].result] = (rr[r[i].result] || []); rr[r[i].result].push(r[i]); } console.log(rr); })); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment