yatil / accessifyhtml5.js

While most browsers work all right with the new semantic elements of HTML5, they don’t add the ARIA accessibility attributes that the specification demands. This small JavaScript adds those attributes to enhance accessibility of web sites.
341 stars 30 forks source link

Code: add unit tests to aid innovation without regressions #13

Open nfreear opened 11 years ago

nfreear commented 11 years ago

To implement issue #12 I'll need to re-arrange the vanillajs code somewhat. So I thought this would be a good time to include some unit tests.

I propose using a lightweight framework initially - BusterJS, hosted via CDN.

However, I suggest we make it fully automated in time, perhaps using Grunt, PhantomJS etc. Note, I don't want to make the project top-heavy. The currently Javascripts are lightweight, and good at doing one job. It would be a pity to add lots of supporting files...

Thoughts welcome!

nfreear commented 11 years ago

Unit test related edits in,

Using asserts.tagName() - buster-assertions

nfreear commented 11 years ago

To assess the state of Buster.js on Windows/ Internet Explorer (nfreear/accessifyhtml5.js@679125d9e11de668), see