Test for input.setSelectionRange and input type=button