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.