euzuro
233600a284
new util test
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@148 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 13:41:19 +00:00
euzuro
eeba5a34c6
Changed OpenLayers.Bounds to use left, bottom, right, top INSTEAD OF minlon, minlat, maxlon, maxlat. Removed OpenLayers.Box which was not getting used. JSDOC/coding standard-ified the OpenLayers.Bounds code and wrote thorough testing for it. Should be all good.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@140 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 12:48:52 +00:00
crschmidt
6ab326f67d
Changing all tabs to spaces, per CodingStandards.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@139 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 12:42:38 +00:00
crschmidt
147a45feff
Test for r137, event constructor with null EventTypes.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@138 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 12:33:41 +00:00
crschmidt
6f997014c0
Test case for 'addlayer': check if markers.length is set correctly. (This would have failed with r133, had I written it earlier.)
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@136 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 12:23:42 +00:00
euzuro
233a638e3e
change diff to add in OpenLayers.LonLat. Even though it is not used, it is probably better to have all these Util objects be consistent. See [129]
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@131 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 05:31:17 +00:00
euzuro
bb55859445
remove unused diff and diffABS functions from OpenLayers.Pixel
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@129 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 05:19:51 +00:00
euzuro
50d4546af4
udpated tests for completed util classes
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@122 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 04:22:23 +00:00
crschmidt
8cf86b2a10
Commit initial tests for inittiles.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@119 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 03:23:17 +00:00
Schuyler Erle
a5d6ad32da
Added test for fix in r114. (take two)
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@116 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 01:03:29 +00:00
Schuyler Erle
1c73ef0250
Added test for fix in r114.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@115 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-18 01:03:12 +00:00
Schuyler Erle
4d0179df50
Added additional sensible defaults to Layer.WMS.DEFAULT_PARAMS, and fixed constructor to only set defaults on param keys that aren't already set (e.g. format). Added tests, which pass.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@112 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 20:58:00 +00:00
crschmidt
6c5b85626e
Add tests for WMS layer. This is one of the first tests that probably will catch
...
real errors: addTile is probably relatively thoroughly covered in testing now.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@110 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 20:14:30 +00:00
crschmidt
4eec3dae7a
Add new tests for Icon cloning. Modify Icon.js to correct incorrect case in constructor call in clone().
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@109 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 17:32:03 +00:00
euzuro
ff2e3017f9
Changed constructor for bounds to take minlon, minlat, maxlon, maxlat as its arguments. changed all related usage and comments
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@104 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 16:50:12 +00:00
euzuro
fe360c91e5
another round of LatLon -> LonLat [99] revisions
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@103 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 16:20:12 +00:00
crschmidt
fc7bbe5beb
Create "Marker" layer. Add appropriate tests.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@100 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 15:54:42 +00:00
euzuro
6f242f5746
Replace all instances and usages of LatLon to LonLat
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@99 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 15:51:37 +00:00
crschmidt
3d1b137009
Add OL.Tile.Image tests.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@98 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 15:28:40 +00:00
crschmidt
fad697dc5a
Add tile tests. Next to do is to figure out how to set up tests for subclasses... should they go in the parent level test object, or in a seperate test object?
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@88 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 12:24:08 +00:00
crschmidt
66edc6dcb7
Fill out more of Icon and Marker classes. In the XP world, supposedly we test first -- and I actually did in this case. Kind of a nifty trick: you work out what the function is supposed to do solely from the tests you want to write, and then you go and actually write the code that does it.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@87 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-17 12:16:23 +00:00
Schuyler Erle
ed9b57b6df
Fixed zoomend event code; changed semantics of the argument to moveToNewExtent to make the argument be the *previous* zoom level. Added tests.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@66 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 23:46:41 +00:00
crschmidt
0b596a94f4
Add zoomin, zoomout tests
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@64 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 22:41:36 +00:00
Schuyler Erle
8218798cf9
Added check for layer.map === map to Map tests.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@62 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 22:26:24 +00:00
Schuyler Erle
ce6c4acd63
Made Events class more generic; the Events constructor now takes a list of supported application event types. Added tests for the Events class.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@61 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 21:48:56 +00:00
Schuyler Erle
d4fd4f7803
Added test for Map.getResolution() bug created in r[56] and fixed in r[59].
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@60 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 21:09:39 +00:00
Schuyler Erle
143fd8d170
Map constructor now calls on div argument, so that developer doesn't need to.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@57 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 19:31:59 +00:00
Schuyler Erle
47bf4cdad8
Changed DEFAULT_ZOOM_LEVELS to maxZoomLevel, DEFAULT_FULL_EXTENT to maxExtent,
...
and RESOLUTION_AT_ZOOM_LEVEL_0 to maxResolution. These values are no longer constants,
but have (thanks to JavaScript object prototyping) sensible defaults.
These defaults can now be overridden by passing a hash as the second argument of
the Map constructor.
Added tests to verify.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@56 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 19:27:22 +00:00
Schuyler Erle
58b202b359
Added addLayers() method to Map class; also, added tests to support it.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@55 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 19:16:02 +00:00
euzuro
aca2bc30b4
fixed tab / spacing
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@46 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 18:21:29 +00:00
crschmidt
a6f794be8d
Modify tests to work in FF on Mac -- functions are not run alphabetically there, so work needs to be repeated in 'subsequent' calls.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@32 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-14 02:50:38 +00:00
crschmidt
d5e46cd5d8
Reorder tests by dependancy.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@25 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-13 01:48:25 +00:00
crschmidt
8bb245832c
Adding latlon and bounds tests. These may need to change if we decide to switch to "Lon,Lat" ordering for GIS
...
correctness over language semantics.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@22 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-13 01:27:31 +00:00
crschmidt
29c62da8ee
Add Pixel unit test.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@21 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-13 01:04:06 +00:00
crschmidt
768f800430
Test that setcenter creates a latlon, and that the values are equal to what we expect. (This would break if we ever
...
changed the order of LatLon's args, for example.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@20 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 23:28:56 +00:00
crschmidt
05d213a806
Add a test for map.setCenter().
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@18 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 22:53:28 +00:00
Schuyler Erle
aceaa334b3
Fixed incorrect plan in test_Layer.html.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@16 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 22:37:29 +00:00
Schuyler Erle
250b7758da
Got tests working.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@15 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 22:36:52 +00:00
Schuyler Erle
ab312e867d
Added basic tests for Map, Layer, and Control base classes.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@14 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 22:31:14 +00:00
Schuyler Erle
04ba28f5a4
Revised directory structure (js/ -> lib/, test/ -> tests/) to match JSAN distribution standards, as documented at http://www.openjsan.org/documentation/dists.html .
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-12 21:15:53 +00:00