Yohan Boniface
602cff077f
Ensure polygons latlngs are never flat (cf #2648 )
2015-03-04 18:14:51 +01:00
Vladimir Agafonkin
4e44e12ecf
add basic marker click test
2015-03-02 19:33:39 +02:00
Vladimir Agafonkin
d84c38a5a2
Merge pull request #3267 from akauppi/fix-jake-indents
...
fix 'jake'
2015-03-01 23:11:31 +02:00
Asko Kauppi
f61a681c56
fix 'jake'
2015-03-01 22:51:04 +02:00
Yohan Boniface
5b3ba078bf
Do not try to remove drag class if marker as no icon
...
Since 4c46abe781
it's possible
to have a marker off the map with dragging still enabled.
We want to be able to disable it in this situation too.
2015-02-13 17:53:23 +01:00
John Firebaugh
21701a6fae
Remove test specific to old zoom code
2015-02-06 16:36:43 -08:00
John Firebaugh
e52c551652
Remove trailing whitespace
2015-02-06 16:36:27 -08:00
Vladimir Agafonkin
54c712cf2b
Merge pull request #2926 from aparshin/clip-round
...
Add optional parameter for result rounding in L.PolyUtil.clipPolygon and L.LineUtil.clipSegment
2015-02-06 17:42:53 +02:00
Vladimir Agafonkin
d145b1fdba
fix a bunch of eslint warnings in the spec suite
2015-01-28 19:32:27 +02:00
Stefan Sydow
4c46abe781
preserve dragable state on layer deactivation
2015-01-19 19:07:04 +01:00
John Firebaugh
2ee1aa2c23
jshint
2015-01-12 11:03:42 -08:00
Patrick Arlt
9186eade96
remove method checks from test
2015-01-11 08:31:41 -08:00
Patrick Arlt
ff8023a460
fix passing latlng to openPopup, fix build
2015-01-07 09:50:06 -08:00
Patrick Arlt
ef0ee1483d
consistant failing test
2015-01-02 07:39:00 -08:00
Patrick Arlt
2d709141a8
fix tests, misc cleanup
2014-12-29 13:50:23 -08:00
Sergey Kruk
c8e5d7c61b
L.latLng factory not to throw error on empty array parameter
2014-12-05 20:36:35 +03:00
Sergey Kruk
c5ebd534b2
Factory L.latLng to accept altitude as third parameter or an object's 'alt' property
2014-12-01 16:02:43 +03:00
John Firebaugh
87c7d1d563
No-op Control#remove if not on a map ( fixes #2877 )
2014-11-13 11:25:49 -08:00
John Firebaugh
0b86fa3266
Remove control from existing map in onAdd ( fixes #3020 )
2014-11-13 10:49:43 -08:00
John Firebaugh
ef96884021
Ensure parent init hooks are called ( fixes #2545 )
2014-11-12 14:49:46 -08:00
John Firebaugh
bad49e7612
Add autoClose option to Popup
...
Fixes #2716
Fixes #1853
2014-11-12 12:52:50 -08:00
John Firebaugh
d2871e68e5
Add test for #3008
2014-11-12 10:53:26 -08:00
John Firebaugh
68f86d85d3
Better fix for tile pruning
...
Need to always prune in _addTiles, otherwise tiles can
get stranded.
2014-11-07 16:27:42 -08:00
Jeff Smale
c6dea37d86
Preserve marker draggability on setIcon ( fixes #2578 )
2014-11-05 18:12:21 -08:00
John Firebaugh
4825fc05b3
Add test for #1871
2014-11-05 15:44:23 -08:00
John Firebaugh
e6d857eb70
jshint
2014-11-05 15:22:49 -08:00
John Firebaugh
ea2c397523
No-op bringToFront/Back when Path is not on a map ( fixes #2439 )
2014-11-05 15:13:28 -08:00
Vladimir Agafonkin
0c70dcb581
remove slow tests
2014-10-29 17:20:06 +02:00
Yohan Boniface
1ddac9361a
Fix array of array of LatLngs toGeoJSON edge case
2014-10-26 21:00:56 +01:00
Vladimir Agafonkin
e2e1ccb2f0
fix 404 warnings in tests
2014-10-23 13:52:19 +03:00
Vladimir Agafonkin
2ff2c42847
move some GridLayer tests, add createTile stub
2014-10-23 12:58:29 +03:00
Vladimir Agafonkin
a33eff73f0
replace CSS transitions in pan animations with frames
2014-10-21 12:21:32 +03:00
Tom MacWright
74133f49f0
Fix MarkerSpec in retina browsers.
2014-10-21 12:21:29 +03:00
Alexander Parshin
3a5d45d62e
Add optional parameter for result rounding in L.PolyUtil.clipPolygon and L.LineUtil.clipSegment
2014-09-30 09:57:53 +04:00
bennlich
4eb033c719
Included leaflet.css in html instead of TileLayerSpec.js
2014-07-31 23:43:14 -06:00
bennlich
abfcd9ea59
Added TileLayerSpec.js tests for loading events
2014-07-31 15:38:21 -06:00
Vladimir Agafonkin
760c730f92
fix LatLng.distanceTo race condition, close #2705
2014-05-28 17:26:41 +03:00
Vladimir Agafonkin
1a7b12604b
run view reset before load, fix #2510
2014-03-05 23:27:32 +02:00
Antoine Pultier
63e22f0ed0
Manage empty L.LatLngBounds objects
2014-02-27 19:03:00 +02:00
danzel
d5a3112852
Another break with adding and removing tile layers.
2014-01-30 16:35:08 +13:00
danzel
2396a10282
Fix adding and immediately removing a Layer from the map when the map is never initialized
2014-01-30 16:15:03 +13:00
danzel
8cc7404f53
This should be oldLatLng, even if latlng is wrong, let's have this be right. refs #2412 #1423
2014-01-29 14:51:55 +13:00
danzel
e2d9a97836
Add oldLatlng parameter to Marker move event, will allow MarkerCluster to support moving markers.
2014-01-29 11:33:08 +13:00
Vladimir Agafonkin
dab0cbfc14
update tests to reflect no clamping near poles
2014-01-03 17:37:28 +02:00
Vladimir Agafonkin
7ff0fa9c72
approximate Circle with ellipse
2014-01-03 00:37:34 +02:00
Vladimir Agafonkin
2b96ea5aba
make Leaflet.js requirable for version, remove noConflict test
...
Currently tests don’t account for wrapper function around Leaflet
source, so the noConflict one failed — removing for now.
2013-12-26 18:29:46 +02:00
Vladimir Agafonkin
47783821f7
rename limitExecByInterval to throttle, better implementation
2013-12-21 01:49:25 -05:00
Vladimir Agafonkin
1dfec0a021
shortcut hasEventListeners as listens
2013-12-19 17:09:32 -05:00
Vladimir Agafonkin
6d1142a978
only propagate events if given true to fire, #2311
2013-12-18 23:23:22 -05:00
Vladimir Agafonkin
ce4a031d40
faster on/off, add private non-sugary versions
2013-12-18 23:07:39 -05:00
Vladimir Agafonkin
9f09f50812
remove Util invokeEach since on/off are hot functions
2013-12-18 22:05:47 -05:00
Vladimir Agafonkin
5d4e77627a
fix PolyUtil spec (we now round poly clipping)
2013-12-18 14:56:23 -05:00
Vladimir Agafonkin
33e23a69e7
fix specs for polygon holes
2013-12-18 12:03:22 -05:00
Vladimir Agafonkin
dc5151b81a
fix GeoJSON roundtripping
2013-12-18 12:03:22 -05:00
Vladimir Agafonkin
0876b51bc9
remove DomUtil.getViewportOffset as unnecessary
2013-12-18 00:51:01 -05:00
Vladimir Agafonkin
21cfd7f3d9
replace Events mixin with Evented inheritance
2013-12-17 14:07:21 -05:00
John Firebaugh
ad9d0f8c7f
Make options object prototype-inherited
...
Fixes #2294
2013-12-15 13:30:30 -08:00
John Firebaugh
af9302ce19
Make GridLayer methods safe to call pre-setView
2013-12-13 18:01:06 -05:00
John Firebaugh
c1654c4626
Add hasLayer tests
2013-12-13 17:51:37 -05:00
Vladimir Agafonkin
4011a6199f
move add/removeLayer logic to Layer; ditch tilelayersload event
2013-12-06 15:10:28 +02:00
Vladimir Agafonkin
04c95e1af9
basic GridLayer spec, move TileLayer spec
2013-12-02 19:18:08 +02:00
Vladimir Agafonkin
dd313e6930
better CRS test coverage
2013-12-02 19:18:07 +02:00
Vladimir Agafonkin
49af3fda5c
merge spherical mercator / epsg3857 changes with some fixes
...
closes #2062
2013-12-02 19:18:07 +02:00
Vladimir Agafonkin
7e20997e40
remove LatLng wrap and fix wrap tests
2013-12-02 19:16:01 +02:00
Vladimir Agafonkin
a03bfb753e
add CRS & Map wrapLatLng, fix GridLayer bounding
2013-12-02 19:16:01 +02:00
Vladimir Agafonkin
00166b9c4f
proper EPSG:4326 with 2x1 root, fixes #1207
2013-12-02 19:16:00 +02:00
Vladimir Agafonkin
88f21d01af
better bind, use native fn.bind if available
2013-12-02 19:16:00 +02:00
Per Liedman
294a7250d0
Added tests to verify size of EPSG3857 and 4326
2013-12-02 19:16:00 +02:00
Calvin Metcalf
87520df2e2
Spherical Radius is used in Spherical Mercator
2013-12-02 19:15:18 +02:00
Calvin Metcalf
4a0beebde3
Revert "' #1968 compiled interpolation'"
2013-11-20 15:42:06 -05:00
Vladimir Agafonkin
80607c6044
reimplement max bounds with proper zooming
2013-11-14 17:45:47 +02:00
Vladimir Agafonkin
be42f7a3b6
Merge branch 'patch-1' of https://github.com/kapouer/Leaflet into maxbounds
...
* 'patch-1' of https://github.com/kapouer/Leaflet :
test Map#setMaxBounds and Map#panInsideBounds
panInsideBounds: fit or center, pass options, remove boundsMinZoom
2013-11-14 14:13:45 +02:00
Vladimir Agafonkin
977fb99b6a
fix specs after messy merge
2013-11-13 21:56:48 +02:00
Vladimir Agafonkin
3618f404f5
Merge branch 'invalidateSize'
2013-11-13 21:50:02 +02:00
John Firebaugh
33263e537d
Add debounceMoveend option to invalidateSize
2013-11-13 10:53:34 -08:00
Vladimir Agafonkin
91c039b7aa
jshinting and major clean up of specs code, ref #2151
2013-11-07 23:54:33 +02:00
Vladimir Agafonkin
5d6641360b
merge GeoJSON altitude pull with some tweaks #1822
2013-11-06 23:17:14 +02:00
Vladimir Agafonkin
77bd10c69d
Merge pull request #2149 from danzel/ios7-2122
...
Work around iOS7 memory trouble
2013-11-04 13:33:54 -08:00
danzel
fa35aba1e9
Improve this test and fix removeEventListener.
2013-11-05 10:29:52 +13:00
danzel
579c044c00
Fix a potential event bug due to bad cleanup.
2013-11-05 10:21:32 +13:00
Vladimir Agafonkin
ec7baabccf
merge runner cleanup #2134
2013-11-04 13:18:24 +02:00
danzel
9fce697982
Work around iOS7 memory trouble by not applying the contextId performance optimization when context==this. The optimization does nothing in this case anyway. Fixes #2122
2013-11-04 09:47:55 +13:00
Vladimir Agafonkin
90ce2ab951
Merge pull request #2136 from danzel/rtl
...
Correct rtl again
2013-11-03 08:23:03 -08:00
danzel
0c7e7eb373
Delete ltr/rtl code as its not needed any more, wtf?
2013-10-30 10:25:28 +13:00
Jan Pieter Waagmeester
99bd248566
Whitespace OCD
2013-10-29 11:49:09 +01:00
Jan Pieter Waagmeester
a7f2d1975f
Allow double quotes in template strings fixes #2120
2013-10-23 15:14:59 +02:00
Jérémy Lal
d7bf010f0b
test Map#setMaxBounds and Map#panInsideBounds
2013-10-14 15:27:11 +02:00
Alexander Parshin
f5de36e229
Add holes support to L.Polygon.setLatLngs(). Fixes #1518
2013-10-13 20:17:12 +04:00
Vladimir Agafonkin
361c9cab6d
fix isArray not working IE9 in rare cases, close #2077
2013-10-08 16:59:42 +03:00
Vladimir Agafonkin
2250cee6ec
allow setZoom before setView, make setView zoom optional, close #2056 , close #1449
2013-09-30 15:00:46 +03:00
Tom MacWright
befc5eb992
Add support for layers lacking Events mixin. Fixes #1962
2013-09-17 17:36:05 -04:00
Vladimir Agafonkin
5841579bb8
Merge pull request #2025 from Gnurfos/issue-1915
...
Accept simple objects in L.latLngBounds(). Fixes #1915 .
2013-09-13 02:14:03 -07:00
Seb Emonet
16f9c9a302
Accept simple objects in L.latLngBounds(). Fixes #1915 .
2013-09-13 00:22:19 +02:00
Vladimir Agafonkin
a086b336b2
fix images 404 warnings in specs
2013-09-12 13:14:00 +03:00
Alexander Parshin
df320c3b06
Add test specifications for CRS classes.
2013-09-10 11:40:48 +04:00
Vladimir Agafonkin
5e30c51f85
add GeoJSON rountripping of GeometryCollection and MultiPoint, close #1956
2013-08-28 12:43:04 +03:00
Vladimir Agafonkin
21d8bde0b7
fix tempate interpolation test and build
2013-08-27 22:06:01 +03:00
Vladimir Agafonkin
1581a94fc3
Merge branch 'interpolation' of https://github.com/calvinmetcalf/Leaflet
...
* 'interpolation' of https://github.com/calvinmetcalf/Leaflet :
'#1968 compiled interpolation'
2013-08-27 21:28:38 +03:00
Calvin Metcalf
b2b25c8941
' #1968 compiled interpolation'
2013-08-27 13:03:07 -04:00
fastrde
a8a8ebe309
added a spec test for worldCopyJump set Center and Zoom fix #1982
2013-08-18 03:18:21 +02:00
Vladimir Agafonkin
e18b7eded6
Merge pull request #1931 from russelldavis/fix-invalidate-size
...
Fix rounding issues in Map::invalidateSize
2013-08-06 02:43:40 -07:00
John Firebaugh
a0c6363bb6
Invalidate _initialCenter along with size ( fixes #1919 )
2013-08-05 14:09:09 -07:00
Russell Davis
f568768142
Fix rounding issues in Map::invalidateSize
2013-08-01 23:14:11 -07:00
Vladimir Agafonkin
7c744d06e6
add getMinZoom test for #1866
...
[skip ci]
2013-07-25 12:44:55 +03:00
Vladimir Agafonkin
75c133082c
fix Map min/maxZoom not overriding TileLayer-derived min/max, close #1848
2013-07-12 15:05:59 +03:00
danzel
ec3b9e0ff2
Add a few more featuregroup tests and fix regression of removeLayer.
2013-07-12 10:13:25 +12:00
Aaron Rutkovsky
0e34b8caf2
PosAnimation tests
2013-07-11 12:30:15 -05:00
John Firebaugh
4839c44509
Fire layerremove after removing the layer
...
This is consistent with 0.5.x and seems more useful. Updating
the state of a layer switcher using map.hasLayer in response
to layeradd and layerremove events is my use case.
2013-07-08 16:53:04 -07:00
Hans Kristian Flaatten
8e98e52b88
Renames L.LatLng property .altitude to .alt
2013-07-03 15:44:57 +02:00
Hans Kristian Flaatten
46885de00d
Adds support for altitude and 3D GeoJSON
...
This commit adds a third parameter to the L.LatLon class for specifying
altitude. This is in turn stored in the `.latitude` property for the LatLng
instance. Latitude property will only be set if the latitude parameter is not
undefined, this is done in order to ensure backwards compability.
```javascript
var latlng = new L.LatLng(10, 20, 30);
console.log(latlng.altitude); // prints '30' to the console
```
Similar functionality has been added to L.GeoJSON coordsToLatLng() and
latLngToCoords() methods in order to handle import and export of 3D GeoJSON.
```javascript
var geoJSON = {
type: 'Feature'
,properties: {}
,geometry: {
type: 'Point'
,coordinates: [20, 10, 30]
}
}
var layer = new L.GeoJSON();
layer.addData(geoJSON);
console.log(layer.getLayers()[0].getLatLng().altitude);
```
`NB` It is important to notice that no logic has been added in order to prevent
latitude and longitude to change without appropirate change in altitude – this
must be handled by the application.
2013-07-03 10:13:00 +02:00
John Firebaugh
475e736346
Revert "Consistent mouse event propagation in Marker and Path"
...
This reverts commit 4015f49615
.
2013-06-28 16:22:20 -04:00
John Firebaugh
4015f49615
Consistent mouse event propagation in Marker and Path
...
Marker was missing mouseup and mousemove.
Path was missing mouseup.
2013-06-28 14:44:10 -04:00
Vladimir Agafonkin
cdc65c6c6b
add Circle & CircleMarker toGeoJSON
2013-06-25 12:43:22 -04:00
John Firebaugh
2c22d13ab8
Fix test
2013-06-24 14:39:23 -04:00
John Firebaugh
e7d0fb1b37
Normalize all toGeoJSON output to Features
2013-06-24 14:30:24 -04:00
Vladimir Agafonkin
54befc9203
fix True Mercator projection calculations, close #1578
2013-06-24 10:42:15 -04:00
danzel
19d49e027f
Add another test for marker/shadow reuse
2013-06-24 08:54:40 +12:00
Paul Bonaud
1af9769ed0
Toggle the display of a marker s popup on click
2013-06-16 22:13:31 +02:00
danzel
1a1cfb2e60
Make Marker setIcon unit tests better.
2013-06-12 16:18:20 +12:00
danzel
fa45913505
Make Icon/DivIcon reuse not try reuse the wrong dom element type.
2013-06-12 16:05:42 +12:00
danzel
7f2eff363b
Add support to DivIcon for reusing a div. Fixes #1753 . Still issues remain (Can't change a marker with a DivIcon to have an image Icon or vice versa)
2013-06-12 15:55:03 +12:00
John Firebaugh
4802561e0e
Don't fire layerremove if layeradd was never fired
2013-06-01 22:16:53 -07:00
John Firebaugh
51fccc80fe
Don't call Layer#onAdd on a layer that has been removed
2013-06-01 22:11:42 -07:00
John Firebaugh
055b3393da
Don't call Layer#onRemove if Layer#onAdd was never called
2013-06-01 21:50:18 -07:00
Andrii Korzh
d1aa0f3b7e
Update LatLngBoundsSpec.js
2013-05-18 13:27:45 +03:00
John Firebaugh
ade9c943ff
Popup-specific closeOnClick option
2013-05-10 15:22:03 -07:00
Vladimir Agafonkin
0849d06c1b
fix whitespace in event spec, #1661
2013-05-08 12:58:50 +03:00
R. Merkert
bbb7acb3f4
Make sure events don't fire after listener is removed.
...
This patch fixes a problem with a dangling event listener, which is
called even after it has been removed. This situation can occur when a
listener is removed during an even dispatch.
To fix this problem, the old action is replaced with a NOOP, so that
when the listener is being fired, it is not the old listener but the
NOOP.
2013-05-07 20:16:25 -04:00
John Firebaugh
c9e2453eed
Bounds-check array access in Polygon#initialize
2013-05-02 16:17:04 -07:00
Daan Mortier
c6620859e4
Updated patch for issue #1631 based on feedback
2013-04-29 13:03:05 +02:00
Daan Mortier
52498f1ef9
Issue #1631 : Fixed a bug on removeEventListener
...
Bugfix for issue #1631 where removeEventListener would throw when no event listeners are registered on the object.
2013-04-29 11:53:16 +02:00
Vladimir Agafonkin
7cb7993571
simplify popup methods, merge #738
2013-04-20 16:58:42 +03:00
Vladimir Agafonkin
412f047533
Merge pull request #1462 from jfirebaugh/toGeoJSON
...
Add #toGeoJSON to various layer types (#712 )
2013-04-19 09:55:40 -07:00
Vladimir Agafonkin
5647f37ae6
cleanup and merge #1596 , adds Events#once
2013-04-19 17:23:45 +03:00
Vladimir Agafonkin
a5e8bc0f49
add Util.invokeEach for hash arguments in event methods
2013-04-19 17:23:14 +03:00
iirvine
84ad7db070
clearEventListeners -> clearAllListeners
2013-04-15 14:09:32 -07:00
iirvine
2d5bf783fe
initial commit of #clearEventListeners
2013-04-15 14:09:32 -07:00
iirvine
031086681f
fix our context to the object that's registering this listener
2013-04-14 20:49:57 -07:00
iirvine
a469a387a1
back to first implementation to fix event leak
2013-04-13 22:11:01 -07:00
iirvine
e25f730b04
better implementation, more tests
2013-04-12 17:03:14 -07:00
iirvine
e41e8a886a
initial implementation of events#once
2013-04-12 15:21:48 -07:00
Tom MacWright
22810aacf7
Throw an exception if a map div is not found
...
and test for initialization exceptions
2013-04-08 12:28:27 -04:00
Vladimir Agafonkin
6009d4ae87
move phantomjs check for touch into Leaflet
...
to allow standalone mocha-phantomjs usage on the browser reporter
2013-04-05 12:32:19 +03:00
John Firebaugh
0e9b7249d8
Convert to expect.js assertions
2013-04-04 09:47:45 -07:00
John Firebaugh
55edd44678
Add #toGeoJSON to various layer types ( #712 )
2013-04-04 09:46:18 -07:00
John Firebaugh
81f21125d4
Update specs for mocha
2013-04-03 15:22:45 -07:00
Tom MacWright
8691889d49
Proper default for delta
2013-04-03 14:50:10 -07:00
Tom MacWright
bf99fdb70e
Tighter tolerance for point-near check
2013-04-03 14:50:10 -07:00
Tom MacWright
a3ab4b1095
Fix mercator tests, these are broken in Leaflet master.
2013-04-03 14:50:10 -07:00
Tom MacWright
a2f7d7e834
Use mocha
2013-04-03 14:50:09 -07:00
danzel
9d4d894450
Add another events test and fix from @iirvine
2013-03-15 13:53:03 +13:00
danzel
44cbed0b5e
Replace the FeatureGroup test with a better one in events, this one currently fails
2013-03-13 10:08:04 +13:00
danzel
e2a852639a
Add failing test case for #1495 from @iirvine
2013-03-12 17:24:46 +13:00
danzel
9300c58262
Fix copy/paste bug
2013-03-12 17:12:06 +13:00
Tom MacWright
71d17180c8
Add layerGroup#getLayers and tests. Fixes #1460
2013-02-27 17:10:19 -05:00
John Firebaugh
511fbb9f44
Add Map#eachLayer ( fixes #1457 )
2013-02-26 11:39:00 -08:00
John Firebaugh
bee90ce0e5
Fix whitespace
2013-02-26 11:31:23 -08:00
Vladimir Agafonkin
9c2e7cfbd4
add Point contains method
2013-02-22 17:28:55 +02:00
John Firebaugh
46dddc895c
Fire an unload event on removal
...
Plugins that need to bind events to `window` or `document`
can attach a listener for this event and unbind their event
handlers.
However, for symmetry, unload is fired only if load has been
fired.
2013-02-21 17:31:09 -08:00
Vladimir Agafonkin
9c9d4286a1
Merge pull request #1439 from danzel/convert_option
...
Make Polyline/Polygon not overwrite the source array
2013-02-21 00:08:48 -08:00
Vladimir Agafonkin
501b179bbd
fix 404 error in TileLayer tests
2013-02-20 21:22:47 +02:00
Vladimir Agafonkin
3063fd9192
Merge pull request #1433 from tmcw/layer-container
...
Add a public API for getContainer for TileLayer
2013-02-20 09:48:19 -08:00
Tom MacWright
d8fccfb3dc
Spacing.
2013-02-19 21:15:36 -05:00
John Firebaugh
6ef25866eb
Add Map#remove
...
This is a minimal implementation; it only unbinds events
and deletes the _leaflet flag from the container.
Refs #1101 .
2013-02-19 17:36:03 -08:00
Tom MacWright
8735b87980
Add public getContainer API to TileLayer, and test for it.
2013-02-19 20:05:44 -05:00
danzel
5873914062
Start on some Polyline/Polygon tests.
2013-02-20 11:03:37 +13:00
Vladimir Agafonkin
0b14d71d7a
Merge pull request #1427 from jfirebaugh/should
...
Omit "should" in spec descriptions
2013-02-19 12:54:33 -08:00
Dave Leaver
db2352ae9b
Merge pull request #1424 from tmcw/use-tobe
...
Use tobe instead of testing the result of an equality
2013-02-19 12:49:04 -08:00
John Firebaugh
01332ebead
Omit "should" in spec descriptions
...
The rationale is this: the spec string describes the expected
behavior unconditionally. The code examples, on the other hand,
set up an expectation that is tested with the call to the expect
method. The code examples can violate the expectation, but the
spec string does not. The value of the spec string is as clearly
as possible describing the behavior. Including “should” in that
description adds no value. (From http://rubyspec.org/style_guide/ )
2013-02-19 12:41:48 -08:00
Tom MacWright
a324759268
Use tobe instead of testing the result of an equality
2013-02-19 14:21:06 -05:00
Vladimir Agafonkin
b84b83bf93
fix setView test, #1420
2013-02-19 19:25:49 +02:00
Tom MacWright
1b03d5d0b4
Test setView. The setTimeout can be removed when #1420 is fixed.
2013-02-19 11:53:42 -05:00
Vladimir Agafonkin
8e176f48aa
Merge pull request #1419 from tmcw/test-jshint
...
Fix semicolons, breaking, whitespace, duplicate var statements.
2013-02-19 08:25:51 -08:00
Vladimir Agafonkin
aea0e3b05b
fix browser test runner, close #1418
2013-02-19 18:21:01 +02:00
Tom MacWright
0a2000166a
Fix semicolons, breaking, whitespace, duplicate var statements.
2013-02-19 11:18:15 -05:00
Vladimir Agafonkin
a0dd4a60e9
accept coordinates in form of simple objects, close #1412
2013-02-19 18:01:53 +02:00
Vladimir Agafonkin
5d41efe616
fix removeAttrubution, cover the control with tests, close #1410
2013-02-19 17:47:38 +02:00
Vladimir Agafonkin
d98b4ea035
throw meaningful exception on getCenter before setView, close #1395
2013-02-19 16:54:29 +02:00
Tom MacWright
eae5758ff4
Split template tests into logic groups, test for template without
...
tokens.
2013-02-15 17:38:11 -05:00
Mattias Bengtsson
3a834d35cd
Add tests for the zoomlevelschanged-event.
2013-02-14 03:07:32 +01:00
danzel
513c6ca4cd
Change _propagateEvent to be careful that it doesn't overwrite e.layer if it is already set. Allows markers to be in multiple FeatureGroups and have the events come through correctly. See the test for details.
...
Fixes Leaflet.markercluster#128 ( https://github.com/Leaflet/Leaflet.markercluster/issues/128 )
2013-02-08 14:44:28 +13:00
Vladimir Agafonkin
c327fa89ee
add a couple of DomUtil tests, #1347
2013-02-05 17:01:01 +02:00
Vladimir Agafonkin
f01e32d764
fix specs sometimes failing
2013-02-05 17:00:38 +02:00
Vladimir Agafonkin
5e05068478
complete LatLng and LatLngBounds tests, #1347
2013-02-05 15:21:40 +02:00
Vladimir Agafonkin
17cf297c9b
complete geometry tests to 100% #1347
2013-02-05 13:51:27 +02:00
Vladimir Agafonkin
ed8dc9f4cd
improve core specs #1347
2013-02-04 18:31:14 +02:00
Vladimir Agafonkin
80f107cba3
Merge pull request #1318 from yohanboniface/add_lbrt_getters
...
Add LatLngBounds.getLeft/getBottom/getRight/getTop
2013-02-04 02:45:06 -08:00
danzel
0390a86e7f
More CircleMarker tests, move them where they should be.
2013-02-04 09:49:37 +13:00
danzel
b905708f24
Test cases for #1297 circleMarker setRadius issue.
2013-02-03 15:34:32 +13:00
Yohan Boniface
4f59140253
Eat our own food
2013-01-28 01:09:26 +01:00
Yohan Boniface
4b5746ffbc
Use getWest/South/East/North instead of getLeft/Bottom/Right/Top
2013-01-28 01:04:09 +01:00
Yohan Boniface
69b925b057
Add LatLngBounds.getLeft/getBottom/getRight/getTop
2013-01-27 12:12:02 +01:00
snkashis
6b4f5c4cf7
handling no existingUrl scenario
2012-12-27 14:39:19 -05:00
snkashis
3d416f38e1
whitespace for hash
2012-12-26 11:45:38 -05:00
Steve
3208db476c
Semicolons in spec
2012-12-22 23:52:25 -05:00
snkashis
8c7c06431a
handle existing query strings for WMS urls , #973
2012-12-22 17:47:38 -05:00
jacobtoye
c40878365d
Fixing addInitHooks specs to test inherited hooks and child class' hooks.
2012-12-19 15:36:42 +13:00
Vladimir Agafonkin
782e8e7dcf
implement hooks for Class constructors (AOP-style), close #1123
2012-12-12 12:26:33 +02:00
Vladimir Agafonkin
8350bb1e08
update LatLng specs after removing default clamping/wrapping
2012-12-12 12:04:54 +02:00
Mattias Bengtsson
5fa8dfa5a5
Add test for ensuring maxZoom and minZoom on the map overrides any layer settings.
2012-12-12 00:45:19 +01:00
Mattias Bengtsson
e475c04eaa
Add a missing semi colon and make one line < 80 chars
2012-12-12 00:45:09 +01:00
Vladimir Agafonkin
0c5f401220
Merge pull request #1159 from moonlite/master
...
First stab at a fix for Issue 623
2012-11-29 06:44:25 -08:00
Mattias Bengtsson
593fa82fe8
Stupid typo
2012-11-29 08:10:04 +01:00
Mattias Bengtsson
2fd70b3bb7
Wrap the last test in a map.whenReady to ensure the map has finished loading
...
before removeLayer is called.
2012-11-29 08:05:08 +01:00
Tom Hughes
0b2a31c1fe
Update the Layers control when layers are added or removed
2012-11-24 00:33:57 +00:00
Mattias Bengtsson
c0135a219d
Added a bunch of tests and fixed some bugs those exposed.
...
Also don't try to automatically adjust zoom. Leave that to the
layer control for now and wait for a setBaseLayer / switchLayer
or something instead.
2012-11-19 04:36:13 +01:00
Pascal Borreli
9546599520
Fixed typos
2012-11-09 23:15:48 +00:00
Vladimir Agafonkin
cca3180f30
fix Circle getBounds, closes #1068
2012-10-15 11:39:07 +03:00
John Firebaugh
0b4d2b0c44
Add Map#whenReady
...
Fixes #1063
2012-10-12 12:54:13 -07:00
John Firebaugh
5ee7113fe4
Add a baselayerchange event
2012-10-12 12:19:21 -07:00
John Firebaugh
2cca6586dc
Test the right class
2012-10-11 08:54:04 -07:00
John Firebaugh
fbf91fef54
Ensure that getBounds can be called during the first moveend event
...
Fixes #1027
2012-10-04 14:02:46 -07:00
Dominik Moritz
f8d6e7052e
Implemented isValid() function for Bounds and LatLngBounds. Fixes issue #966 . Added specification.
2012-09-11 12:43:16 +01:00
Vladimir Agafonkin
382ef5c0b2
spec cleanup
2012-07-05 12:54:40 +03:00
Aaron King
95ed9cdda2
Allow L.Mixin.Events.addEventListener() to accept a map in which the string keys represent one or more space-separated event types and the values represent a handler function to be called for the event(s).
...
Allow L.Mixin.Events.removeEventListener() to accept one or more space-separated event types. Omitting the fn parameter will remove all event handlers for the supplied event type(s).
Also allow L.Mixin.Events.removeEventListener() to accept a map where the string keys represent one or more space-separated event types and the values represent handler functions previously attached for the event(s).
Add unit tests for the above changes.
2012-06-29 16:14:41 -07:00
danzel
61ce465134
Fix up the unit tests. Polyline.closestLayerPoint and noConflict were broken.
2012-06-25 12:16:46 +12:00
Konstantin.Myakshin
b65e95f96b
Trigger popupopen/close on markers too.
2012-06-18 22:35:54 +03:00
mourner
b333f86e1d
fix superclass regression
2012-03-09 11:28:14 +02:00
Alex Graul
57f44bc423
fix issue with 180 longs being clamped to -180
2011-12-21 13:22:07 +00:00
Vladimir Agafonkin
c726d6f3cb
Merge pull request #189 from anru/domutil
...
Add L.DomUtil.removeClass method
2011-07-20 04:27:12 -07:00
Andrey Rublev
263a5b9b5f
Add method Polyline.closestLayerPoint
...
Also fix method L.LineUtil.simplify for empty geometry
2011-07-20 13:23:04 +07:00
Andrey Rublev
b27922ea2c
Add L.DomUtil.removeClass method
2011-07-15 19:03:35 +07:00
Andrey Rublev
9479911e69
Fix Bounds.contains method in case if obj argument is instance of L.Point
2011-07-13 18:13:35 +07:00
Mourner
e9b8353198
more Class specs to test @anru changes
2011-07-12 15:32:40 +03:00
Mourner
76d517e3e2
temporarily disable projection specs (need rewrite after refactoring)
2011-07-12 15:32:22 +03:00
Mourner
61d636cc4f
remove noSpec failures (enable when needed during development)
2011-07-12 14:59:43 +03:00
Mourner
ea4fd78b7c
fix static properties inheritance
2011-06-21 12:09:49 +03:00
mourner
ff36820cf9
fix namespace spec
2010-09-23 17:25:55 +03:00
mourner
2b8d9eed1d
LatLngBounds, moved MapSpec
2010-09-21 11:46:31 +03:00
mourner
a2d2fed2db
new Point methods
2010-09-17 19:04:41 +03:00
mourner
d7a160470a
empty Map spec
2010-09-15 16:46:27 +03:00
mourner
53bd768a47
TileLayer
2010-09-15 16:45:42 +03:00
mourner
b6ead1dbf2
Transformation fix
2010-09-15 16:45:16 +03:00
mourner
06d043853d
multiplyBy
2010-09-15 16:45:02 +03:00
mourner
ad46474275
added getStyle, fixed setPosition
2010-09-14 14:57:45 +03:00
mourner
391e57c144
placeholder for spec
2010-09-13 19:02:49 +03:00
mourner
c958de9721
Bounds with specs
2010-09-13 14:58:28 +03:00
mourner
59a1736b3e
Point fixes
2010-09-13 14:58:03 +03:00
mourner
7cef8d3851
Events fire shortcut
2010-09-10 16:54:20 +03:00
mourner
a8d55d0d47
Point add/subtract/divideBy
2010-09-10 16:54:03 +03:00
mourner
a9677fca55
removed Options
2010-09-07 18:20:43 +03:00
mourner
6a158218c1
DomUtil.get, spec
2010-09-07 17:02:45 +03:00
mourner
88ef7d1667
DomEvent fixes, specs
2010-09-07 15:04:00 +03:00
mourner
42bcb9b3b3
DomUtil, DomEvent, namespace config improvements, some specs
2010-09-07 14:27:44 +03:00
mourner
16097461f5
Projection fixes, specs
2010-09-07 11:59:58 +03:00
mourner
f734679158
Projection without specs
2010-09-06 19:17:27 +03:00
mourner
4854e0f9f7
minor renaming
2010-09-06 19:14:04 +03:00
mourner
0b5cc9c455
LatLng + specs
2010-09-06 19:06:38 +03:00
mourner
b50d878e5d
minor spec fix
2010-09-06 18:38:14 +03:00
mourner
5b21def444
options merging
2010-09-06 18:26:20 +03:00