Merge pull request #1866 from fredj/pointerevents-tests

Fix simulated touch event in tests
This commit is contained in:
Frédéric Junod
2014-03-17 12:18:36 +01:00

View File

@@ -40,7 +40,7 @@ describe('ol.pointer.MouseSource', function() {
// the two events are at different positions
simulateTouchEvent('touchstart', 10, 20);
simulateEvent('mousedown', 10, 40);
simulateEvent('mousedown', 10, 50);
expect(eventSpy.calledTwice).to.be.ok();
});
@@ -66,7 +66,7 @@ describe('ol.pointer.MouseSource', function() {
{
identifier: 4,
clientX: x,
clientX: y,
clientY: y,
target: target
}
];