Tests paint invalidation of an empty object when moved and resized. It passes if there is not any assertion failure or paint invalidation.