Test for click and dblclick functions