"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "spec/suites/layer/vector/CircleMarkerSpec.js" between
Leaflet-1.8.0.tar.gz and Leaflet-1.9.0.tar.gz

About: Leaflet is a JavaScript library for mobile-friendly interactive maps.

CircleMarkerSpec.js  (Leaflet-1.8.0):CircleMarkerSpec.js  (Leaflet-1.9.0)
skipping to change at line 83 skipping to change at line 83
}); });
marker.setLatLng(afterLatLng); marker.setLatLng(afterLatLng);
expect(eventArgs).to.not.be(null); expect(eventArgs).to.not.be(null);
expect(eventArgs.oldLatLng).to.be(beforeLatLng); expect(eventArgs.oldLatLng).to.be(beforeLatLng);
expect(eventArgs.latlng).to.be(afterLatLng); expect(eventArgs.latlng).to.be(afterLatLng);
expect(marker.getLatLng()).to.be(afterLatLng); expect(marker.getLatLng()).to.be(afterLatLng);
}); });
}); });
describe("#_containsPoint", function () {
it("checks if a point is contained", function () {
var point1 = L.point(200, 200);
var point2 = L.point(10, 10);
var circlemarker = L.circleMarker([10, 10], {radius: 20})
;
circlemarker.addTo(map);
expect(circlemarker._containsPoint(point1)).to.be(true);
expect(circlemarker._containsPoint(point2)).to.be(false);
});
});
}); });
 End of changes. 1 change blocks. 
0 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)