Merge pull request #4847 from openlayers/greenkeeper-eslint-2.1.0
Update eslint to version 2.1.0 🚀
This commit is contained in:
+1
-1
@@ -54,7 +54,7 @@
|
|||||||
"clean-css": "3.4.9",
|
"clean-css": "3.4.9",
|
||||||
"coveralls": "2.11.6",
|
"coveralls": "2.11.6",
|
||||||
"debounce": "^1.0.0",
|
"debounce": "^1.0.0",
|
||||||
"eslint": "2.0.0",
|
"eslint": "2.1.0",
|
||||||
"eslint-config-openlayers": "4.0.0",
|
"eslint-config-openlayers": "4.0.0",
|
||||||
"expect.js": "0.3.1",
|
"expect.js": "0.3.1",
|
||||||
"gaze": "^0.5.1",
|
"gaze": "^0.5.1",
|
||||||
|
|||||||
@@ -49,14 +49,12 @@ describe('ol.interaction.Draw', function() {
|
|||||||
// calculated in case body has top < 0 (test runner with small window)
|
// calculated in case body has top < 0 (test runner with small window)
|
||||||
var position = goog.style.getClientPosition(viewport);
|
var position = goog.style.getClientPosition(viewport);
|
||||||
var shiftKey = opt_shiftKey !== undefined ? opt_shiftKey : false;
|
var shiftKey = opt_shiftKey !== undefined ? opt_shiftKey : false;
|
||||||
var event = new ol.MapBrowserPointerEvent(type, map,
|
var event = new ol.pointer.PointerEvent(type, {
|
||||||
new ol.pointer.PointerEvent(type,
|
clientX: position.x + x + width / 2,
|
||||||
{
|
clientY: position.y + y + height / 2,
|
||||||
clientX: position.x + x + width / 2,
|
shiftKey: shiftKey
|
||||||
clientY: position.y + y + height / 2,
|
});
|
||||||
shiftKey: shiftKey
|
map.handleMapBrowserEvent(new ol.MapBrowserPointerEvent(type, map, event));
|
||||||
}));
|
|
||||||
map.handleMapBrowserEvent(event);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
describe('constructor', function() {
|
describe('constructor', function() {
|
||||||
|
|||||||
@@ -66,15 +66,14 @@ describe('ol.interaction.Modify', function() {
|
|||||||
// calculated in case body has top < 0 (test runner with small window)
|
// calculated in case body has top < 0 (test runner with small window)
|
||||||
var position = goog.style.getClientPosition(viewport);
|
var position = goog.style.getClientPosition(viewport);
|
||||||
var shiftKey = opt_shiftKey !== undefined ? opt_shiftKey : false;
|
var shiftKey = opt_shiftKey !== undefined ? opt_shiftKey : false;
|
||||||
var event = new ol.MapBrowserPointerEvent(type, map,
|
var pointerEvent = new ol.pointer.PointerEvent(type, {
|
||||||
new ol.pointer.PointerEvent(type,
|
type: type,
|
||||||
{
|
button: button,
|
||||||
type: type,
|
clientX: position.x + x + width / 2,
|
||||||
button: button,
|
clientY: position.y + y + height / 2,
|
||||||
clientX: position.x + x + width / 2,
|
shiftKey: shiftKey
|
||||||
clientY: position.y + y + height / 2,
|
});
|
||||||
shiftKey: shiftKey
|
var event = new ol.MapBrowserPointerEvent(type, map, pointerEvent);
|
||||||
}));
|
|
||||||
event.pointerEvent.pointerId = 1;
|
event.pointerEvent.pointerId = 1;
|
||||||
map.handleMapBrowserEvent(event);
|
map.handleMapBrowserEvent(event);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,14 +80,12 @@ describe('ol.interaction.Select', function() {
|
|||||||
// calculated in case body has top < 0 (test runner with small window)
|
// calculated in case body has top < 0 (test runner with small window)
|
||||||
var position = goog.style.getClientPosition(viewport);
|
var position = goog.style.getClientPosition(viewport);
|
||||||
var shiftKey = opt_shiftKey !== undefined ? opt_shiftKey : false;
|
var shiftKey = opt_shiftKey !== undefined ? opt_shiftKey : false;
|
||||||
var event = new ol.MapBrowserPointerEvent(type, map,
|
var event = new ol.pointer.PointerEvent(type, {
|
||||||
new ol.pointer.PointerEvent(type,
|
clientX: position.x + x + width / 2,
|
||||||
{
|
clientY: position.y + y + height / 2,
|
||||||
clientX: position.x + x + width / 2,
|
shiftKey: shiftKey
|
||||||
clientY: position.y + y + height / 2,
|
});
|
||||||
shiftKey: shiftKey
|
map.handleMapBrowserEvent(new ol.MapBrowserPointerEvent(type, map, event));
|
||||||
}));
|
|
||||||
map.handleMapBrowserEvent(event);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
describe('constructor', function() {
|
describe('constructor', function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user