this is my first pull-request attempt. It can be scary, maybe is not completed and still a little dirty, but it's something towards automatic tests for typer.js.
Currently it tests a simple exercise (aeiou exercise) for spanish layout. It checks that when typed correctly it finishes the exercise (comparing currentPos value) and that correct keys are highlighted (checking the nextX class in DOM). Still need more tests like checking incorrect typing, for example.
I detected that currentPos doesn't increment with the last key, I don't know if that could be a bug...
Of course, I need to add more layouts and exercises. Don't hesitate to critizice, let me know what to improve before accepting it!
Thanks,
Ruben.
PD: I synced with your latest version (3 hours ago), a lot of cleaning in your side ;)!
Hi Al,
this is my first pull-request attempt. It can be scary, maybe is not completed and still a little dirty, but it's something towards automatic tests for typer.js.
Currently it tests a simple exercise (aeiou exercise) for spanish layout. It checks that when typed correctly it finishes the exercise (comparing currentPos value) and that correct keys are highlighted (checking the nextX class in DOM). Still need more tests like checking incorrect typing, for example.
I detected that currentPos doesn't increment with the last key, I don't know if that could be a bug...
Of course, I need to add more layouts and exercises. Don't hesitate to critizice, let me know what to improve before accepting it!
Thanks, Ruben.
PD: I synced with your latest version (3 hours ago), a lot of cleaning in your side ;)!