Ignore any events that bubble up to the document while testing.

Avoids triggering the browser's built-in "middle click to scroll" behavior when running specs.
Merge pull request #2312 from AnalyticalGraphicsInc/fixMiddleClickInSpecs

Ignore any events that bubble up to the document while testing.