test: Fixed linter errors
This commit is contained in:
@@ -330,7 +330,8 @@ describe('ol.Ellipsoid', function() {
|
|||||||
e = expected[i];
|
e = expected[i];
|
||||||
v = ol.ellipsoid.WGS84.vincenty(e.c1, e.c2, 1e-12, 100);
|
v = ol.ellipsoid.WGS84.vincenty(e.c1, e.c2, 1e-12, 100);
|
||||||
expect(v.distance).to.roughlyEqual(e.vincentyDistance, 1e-8);
|
expect(v.distance).to.roughlyEqual(e.vincentyDistance, 1e-8);
|
||||||
expect(v.finalBearing).to.roughlyEqual(e.vincentyFinalBearing, 1e-9);
|
expect(v.finalBearing).to.roughlyEqual(
|
||||||
|
e.vincentyFinalBearing, 1e-9);
|
||||||
expect(v.initialBearing).to.roughlyEqual(
|
expect(v.initialBearing).to.roughlyEqual(
|
||||||
e.vincentyInitialBearing, 1e-9);
|
e.vincentyInitialBearing, 1e-9);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ describe('ol.Rectangle', function() {
|
|||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
rectangle1 = new ol.Rectangle(50, 50, 100, 100);
|
rectangle1 = new ol.Rectangle(50, 50, 100, 100);
|
||||||
expect.Assertion.prototype.intersectWith = function(other) {
|
expect.Assertion.prototype.intersectWith = function(other) {
|
||||||
return this.obj.intersects(other);
|
return this.obj.intersects(other);
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -34,22 +34,38 @@ describe('ol.Rectangle', function() {
|
|||||||
expect(rectangle1).to.intersectWith(new ol.Rectangle(80, 80, 120, 120));
|
expect(rectangle1).to.intersectWith(new ol.Rectangle(80, 80, 120, 120));
|
||||||
expect(rectangle1).to.intersectWith(new ol.Rectangle(20, 20, 120, 120));
|
expect(rectangle1).to.intersectWith(new ol.Rectangle(20, 20, 120, 120));
|
||||||
expect(rectangle1).to.intersectWith(new ol.Rectangle(70, 70, 80, 80));
|
expect(rectangle1).to.intersectWith(new ol.Rectangle(70, 70, 80, 80));
|
||||||
expect(rectangle1).to.not.intersectWith(new ol.Rectangle(10, 10, 30, 30));
|
expect(rectangle1).to.not.intersectWith(
|
||||||
expect(rectangle1).to.not.intersectWith(new ol.Rectangle(30, 10, 70, 30));
|
new ol.Rectangle(10, 10, 30, 30));
|
||||||
expect(rectangle1).to.not.intersectWith(new ol.Rectangle(50, 10, 100, 30));
|
expect(rectangle1).to.not.intersectWith(
|
||||||
expect(rectangle1).to.not.intersectWith(new ol.Rectangle(80, 10, 120, 30));
|
new ol.Rectangle(30, 10, 70, 30));
|
||||||
expect(rectangle1).to.not.intersectWith(new ol.Rectangle(120, 10, 140, 30));
|
expect(rectangle1).to.not.intersectWith(
|
||||||
expect(rectangle1).to.not.intersectWith(new ol.Rectangle(10, 30, 30, 70));
|
new ol.Rectangle(50, 10, 100, 30));
|
||||||
expect(rectangle1).to.not.intersectWith(new ol.Rectangle(120, 30, 140, 70));
|
expect(rectangle1).to.not.intersectWith(
|
||||||
expect(rectangle1).to.not.intersectWith(new ol.Rectangle(10, 50, 30, 100));
|
new ol.Rectangle(80, 10, 120, 30));
|
||||||
expect(rectangle1).to.not.intersectWith(new ol.Rectangle(120, 50, 140, 100));
|
expect(rectangle1).to.not.intersectWith(
|
||||||
expect(rectangle1).to.not.intersectWith(new ol.Rectangle(10, 80, 30, 120));
|
new ol.Rectangle(120, 10, 140, 30));
|
||||||
expect(rectangle1).to.not.intersectWith(new ol.Rectangle(120, 80, 140, 120));
|
expect(rectangle1).to.not.intersectWith(
|
||||||
expect(rectangle1).to.not.intersectWith(new ol.Rectangle(10, 120, 30, 140));
|
new ol.Rectangle(10, 30, 30, 70));
|
||||||
expect(rectangle1).to.not.intersectWith(new ol.Rectangle(30, 120, 70, 140));
|
expect(rectangle1).to.not.intersectWith(
|
||||||
expect(rectangle1).to.not.intersectWith(new ol.Rectangle(50, 120, 100, 140));
|
new ol.Rectangle(120, 30, 140, 70));
|
||||||
expect(rectangle1).to.not.intersectWith(new ol.Rectangle(80, 120, 120, 140));
|
expect(rectangle1).to.not.intersectWith(
|
||||||
expect(rectangle1).to.not.intersectWith(new ol.Rectangle(120, 120, 140, 140));
|
new ol.Rectangle(10, 50, 30, 100));
|
||||||
|
expect(rectangle1).to.not.intersectWith(
|
||||||
|
new ol.Rectangle(120, 50, 140, 100));
|
||||||
|
expect(rectangle1).to.not.intersectWith(
|
||||||
|
new ol.Rectangle(10, 80, 30, 120));
|
||||||
|
expect(rectangle1).to.not.intersectWith(
|
||||||
|
new ol.Rectangle(120, 80, 140, 120));
|
||||||
|
expect(rectangle1).to.not.intersectWith(
|
||||||
|
new ol.Rectangle(10, 120, 30, 140));
|
||||||
|
expect(rectangle1).to.not.intersectWith(
|
||||||
|
new ol.Rectangle(30, 120, 70, 140));
|
||||||
|
expect(rectangle1).to.not.intersectWith(
|
||||||
|
new ol.Rectangle(50, 120, 100, 140));
|
||||||
|
expect(rectangle1).to.not.intersectWith(
|
||||||
|
new ol.Rectangle(80, 120, 120, 140));
|
||||||
|
expect(rectangle1).to.not.intersectWith(
|
||||||
|
new ol.Rectangle(120, 120, 140, 140));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user