Port the tests for mousedown, mouseup, and mousemove events.

https://github.com/ariya/phantomjs/issues/12439