This test is meaningfull only if RenderTheme::shouldShowPlaceholderWhenFocused() returns true. The green caret in the following text box should painted over the red placeholder text.