Fixes some tests for Gecko

- skip tests about javascript: links, because they are executed asynchronously
  so tests about them fails.
- event.x and event.y don't exist in Gecko. The standard way is event.clientX
  and event.clientY