Skip to content

Instantly share code, notes, and snippets.

@jorupp
Created March 4, 2015 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jorupp/b99522397504283c9ba1 to your computer and use it in GitHub Desktop.
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
$.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