To note: Javascript is not running in this browser environment. The canvas element is ignored; instead a placeholder image displays where the canvas would have appeared.
Test purpose
- Create block and wheel entitys
- Clone the entitys
- Position the entitys on the canvas
- Change the state of a subset of entitys sharing the same state object
- Check the various drawing methods available to the entitys
- Check that when a drag operation starts, the dragged entity does not suddenly jump
- Check that when a drag operation ends, the dragged entity does not suddenly jump
- Kill and resurrect several entitys to make sure they remove themselves entirely from the Scrawl-canvas system, and cleanly recreate themselves from saved packets
Touch test: should work as expected - though flicking a block/wheel may lead to it moving beyond the canvas border and out of sight!
Annotated code