Refactor WebViewUpdateTextInputState unit test removing some uglyness from the code.

Reviewed by: Thiago Lacerda