Merge pull request #1866 from fredj/pointerevents-tests
Fix simulated touch event in tests
This commit is contained in:
@@ -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
|
||||
}
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user