SpecHelper.js (Leaflet-1.8.0) | : | SpecHelper.js (Leaflet-1.9.0) | ||
---|---|---|---|---|
skipping to change at line 64 | skipping to change at line 64 | |||
button: 0 | button: 0 | |||
}, props || {})); | }, props || {})); | |||
}; | }; | |||
happen.makeEvent = (function (makeEvent) { | happen.makeEvent = (function (makeEvent) { | |||
return function (o) { | return function (o) { | |||
var evt = makeEvent(o); | var evt = makeEvent(o); | |||
if (o.type.substring(0, 7) === 'pointer') { | if (o.type.substring(0, 7) === 'pointer') { | |||
evt.pointerId = o.pointerId; | evt.pointerId = o.pointerId; | |||
evt.pointerType = o.pointerType; | evt.pointerType = o.pointerType; | |||
} else if (o.type.indexOf('wheel') > -1) { | ||||
evt.deltaY = evt.deltaY || o.deltaY; | ||||
evt.deltaMode = evt.deltaMode || o.deltaMode; | ||||
} | } | |||
return evt; | return evt; | |||
}; | }; | |||
})(happen.makeEvent); | })(happen.makeEvent); | |||
// We'll want to skip a couple of things when in PhantomJS, due to lack of CSS a nimations | // We'll want to skip a couple of things when in PhantomJS, due to lack of CSS a nimations | |||
it.skipIfNo3d = L.Browser.any3d ? it : it.skip; | it.skipIfNo3d = L.Browser.any3d ? it : it.skip; | |||
// Viceversa: some tests we want only to run in browsers without CSS animations. | // Viceversa: some tests we want only to run in browsers without CSS animations. | |||
it.skipIf3d = L.Browser.any3d ? it.skip : it; | it.skipIf3d = L.Browser.any3d ? it.skip : it; | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 3 lines changed or added |