This tests that we report the correct selection-related states.

This test should only be run inside of DumpRenderTree.