Tom MacWright
8735b87980
Add public getContainer API to TileLayer, and test for it.
2013-02-19 20:05:44 -05: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