This tests that preventDefault called onmousedown will prevent a caret from being placed in the text field.