Rich-Harris / ramjet

Morph DOM elements from one state to another with smooth animations and transitions

Home Page:http://www.rich-harris.co.uk/ramjet/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test suite

Rich-Harris opened this issue · comments

I have no idea what a good strategy for testing a library like this looks like...

You should perhaps try out "reftests": https://developer.mozilla.org/en-US/docs/Creating_reftest-based_unit_tests

All of Gecko's CSS is tested this way

Thanks, I wasn't aware of that. Could definitely come in handy. Reading around a bit though, reftests sound a bit hairy - lack of precise timing control, inconsistent approach to fuzzy matching... I'm inclined to put it on the 'one day' pile :)

In the meantime, I should probably close this issue - earlier today I added a basic test.html file (source), which enables visual verification in any browser. Manual testing is a PITA but realistically I think it's the only option for now.