This tests the invalidation behaviour of the paint callback.
See the devtools console for additional test output.