euzuro
|
2410d94107
|
removed px member from OpenLayers.Popup. user must now specify a px value in the draw() method, just like with markers. updated tests
git-svn-id: http://svn.openlayers.org/trunk/openlayers@252 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-22 11:45:38 +00:00 |
|
euzuro
|
7f11d01e87
|
changing function name from generateMarker to draw() to remain consistent with other areas of the code. (specifically OpenLayers.Control, whouses the draw() function to render the control and return a link to the div)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@249 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-22 10:50:35 +00:00 |
|
euzuro
|
78588aa8ea
|
adding getPixelFromLonLat() function to Map.js -- the code is lifted from OpenLayers.Layer.Marker's drawMarker() function. also test added to ensure both translation functions return valid objects and that going back and forth is consistent. Note that i only test pixel-lonlat-pixel, because going from lonlat-pixel-lonlat there is loss due to the rounding in the lonlat-pixel phase
git-svn-id: http://svn.openlayers.org/trunk/openlayers@246 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-22 09:55:20 +00:00 |
|
crschmidt
|
1be7117f5b
|
Fix tests from recent projection change.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@242 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-21 18:54:06 +00:00 |
|
euzuro
|
cdbcd48e3f
|
actually test setpx setsize and setcontenthtml
git-svn-id: http://svn.openlayers.org/trunk/openlayers@233 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-21 17:59:22 +00:00 |
|
euzuro
|
e5f4e4aa4a
|
add member variables, constants, getters and setters, and tests for id, px, size, content html, background color, opacity, border
git-svn-id: http://svn.openlayers.org/trunk/openlayers@232 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-21 17:55:49 +00:00 |
|
euzuro
|
21cbfff2c7
|
popup no longer needs a reference to its map
git-svn-id: http://svn.openlayers.org/trunk/openlayers@230 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-21 17:53:11 +00:00 |
|
euzuro
|
d9762c984e
|
add code to Map.js to allow for the addittion and removal of popups. add a new html file to play around with popups. add a test in the test_Map file for the popup adding/removing
git-svn-id: http://svn.openlayers.org/trunk/openlayers@227 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-21 15:47:10 +00:00 |
|
euzuro
|
b5c6bbbf20
|
make popup take arguments, allow it to draw itself. tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@226 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-21 15:27:36 +00:00 |
|
euzuro
|
d694efa60e
|
add indexOf() function to array - returns first index of a given element in an array. useful for testing, etc
git-svn-id: http://svn.openlayers.org/trunk/openlayers@225 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-21 14:42:18 +00:00 |
|
euzuro
|
6dd191c86f
|
create testing file for Popup
git-svn-id: http://svn.openlayers.org/trunk/openlayers@222 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-21 13:43:11 +00:00 |
|
crschmidt
|
0033ba70a9
|
Add Control.PanZoom tests.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@218 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-21 02:07:07 +00:00 |
|
crschmidt
|
e7c6d4df19
|
Change order of Marker creation from icon, latlon to latlon,icon. I don't know why I would have done it the other way.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@215 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-20 20:39:33 +00:00 |
|
crschmidt
|
e88c6abb1f
|
Initial tests for OpenLayers.Feature. tests the createMarker method added in r212.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@213 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-20 13:29:11 +00:00 |
|
crschmidt
|
ac70551a26
|
Update map constructor test: we no longer have a Controls div. Also, remove duplicate test of 'ok map.layerContainerDiv is an HTMLDivElement'
git-svn-id: http://svn.openlayers.org/trunk/openlayers@207 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-20 04:17:58 +00:00 |
|
crschmidt
|
83030847a1
|
Fix Layer.Marker test file: <div id="map"> wasn't defined in the file.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@203 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-20 02:28:23 +00:00 |
|
crschmidt
|
2874c72367
|
Add Layer.Text tests and supporting data file.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@198 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-19 22:53:19 +00:00 |
|
crschmidt
|
2684454343
|
Naturally layer.map is 0 if we never add it to a map in the first place...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@197 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-19 22:11:07 +00:00 |
|
euzuro
|
e114a80311
|
updating tests for [180]. smack me. some of them are still failing. seems like it might be browser-related
git-svn-id: http://svn.openlayers.org/trunk/openlayers@182 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-19 15:52:21 +00:00 |
|
euzuro
|
95d8c8f2c8
|
still need to get into the habit of testing *before* committing. im working on it. i promise. fixing test for Tile.Image based on [173].
git-svn-id: http://svn.openlayers.org/trunk/openlayers@177 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-19 14:46:21 +00:00 |
|
euzuro
|
5a01d3b510
|
last test function for Util.js. In theory, that entire file is now fully tested
git-svn-id: http://svn.openlayers.org/trunk/openlayers@153 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-18 17:13:47 +00:00 |
|
euzuro
|
db33b7b260
|
more tests! createDiv and createImage now testable.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@152 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-18 16:59:39 +00:00 |
|
euzuro
|
60013db953
|
correctly identify getParameterString as a Util function
git-svn-id: http://svn.openlayers.org/trunk/openlayers@149 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
|
2006-05-18 13:42:14 +00:00 |
|
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 |
|