Changeset 6724
- Timestamp:
- 03/31/08 01:31:28 (5 months ago)
- Files:
-
- trunk/openlayers/tests/BaseTypes.html (modified) (7 diffs)
- trunk/openlayers/tests/BaseTypes/Bounds.html (modified) (20 diffs)
- trunk/openlayers/tests/BaseTypes/Class.html (modified) (2 diffs)
- trunk/openlayers/tests/BaseTypes/Element.html (modified) (8 diffs)
- trunk/openlayers/tests/BaseTypes/LonLat.html (modified) (9 diffs)
- trunk/openlayers/tests/BaseTypes/Pixel.html (modified) (7 diffs)
- trunk/openlayers/tests/BaseTypes/Size.html (modified) (5 diffs)
- trunk/openlayers/tests/Control/Attribution.html (modified) (1 diff)
- trunk/openlayers/tests/Control/KeyboardDefaults.html (modified) (3 diffs)
- trunk/openlayers/tests/Control/LayerSwitcher.html (modified) (5 diffs)
- trunk/openlayers/tests/Control/MousePosition.html (modified) (3 diffs)
- trunk/openlayers/tests/Control/MouseToolbar.html (modified) (3 diffs)
- trunk/openlayers/tests/Control/NavToolbar.html (modified) (2 diffs)
- trunk/openlayers/tests/Control/PanZoom.html (modified) (3 diffs)
- trunk/openlayers/tests/Control/PanZoomBar.html (modified) (2 diffs)
- trunk/openlayers/tests/Control/Panel.html (modified) (2 diffs)
- trunk/openlayers/tests/Control/Permalink.html (modified) (7 diffs)
- trunk/openlayers/tests/Control/Scale.html (modified) (4 diffs)
- trunk/openlayers/tests/Events.html (modified) (7 diffs)
- trunk/openlayers/tests/Feature.html (modified) (6 diffs)
- trunk/openlayers/tests/Format.html (modified) (1 diff)
- trunk/openlayers/tests/Geometry.html (modified) (9 diffs)
- trunk/openlayers/tests/Geometry/Collection.html (modified) (9 diffs)
- trunk/openlayers/tests/Geometry/Curve.html (modified) (8 diffs)
- trunk/openlayers/tests/Geometry/LineString.html (modified) (5 diffs)
- trunk/openlayers/tests/Geometry/LinearRing.html (modified) (4 diffs)
- trunk/openlayers/tests/Geometry/MultiLineString.html (modified) (2 diffs)
- trunk/openlayers/tests/Geometry/MultiPoint.html (modified) (3 diffs)
- trunk/openlayers/tests/Geometry/MultiPolygon.html (modified) (2 diffs)
- trunk/openlayers/tests/Geometry/Point.html (modified) (5 diffs)
- trunk/openlayers/tests/Geometry/Polygon.html (modified) (5 diffs)
- trunk/openlayers/tests/Geometry/Rectangle.html (modified) (4 diffs)
- trunk/openlayers/tests/Geometry/Surface.html (modified) (1 diff)
- trunk/openlayers/tests/Icon.html (modified) (3 diffs)
- trunk/openlayers/tests/Layer.html (modified) (10 diffs)
- trunk/openlayers/tests/Layer/EventPane.html (modified) (4 diffs)
- trunk/openlayers/tests/Layer/FixedZoomLevels.html (modified) (1 diff)
- trunk/openlayers/tests/Layer/GML.html (modified) (1 diff)
- trunk/openlayers/tests/Layer/GeoRSS.html (modified) (6 diffs)
- trunk/openlayers/tests/Layer/Google.html (modified) (6 diffs)
- trunk/openlayers/tests/Layer/Grid.html (modified) (15 diffs)
- trunk/openlayers/tests/Layer/HTTPRequest.html (modified) (7 diffs)
- trunk/openlayers/tests/Layer/Image.html (modified) (4 diffs)
- trunk/openlayers/tests/Layer/KaMap.html (modified) (11 diffs)
- trunk/openlayers/tests/Layer/MapGuide.html (modified) (7 diffs)
- trunk/openlayers/tests/Layer/MapServer.html (modified) (18 diffs)
- trunk/openlayers/tests/Layer/Markers.html (modified) (5 diffs)
- trunk/openlayers/tests/Layer/MultiMap.html (modified) (5 diffs)
- trunk/openlayers/tests/Layer/PointTrack.html (modified) (3 diffs)
- trunk/openlayers/tests/Layer/TMS.html (modified) (8 diffs)
- trunk/openlayers/tests/Layer/Text.html (modified) (6 diffs)
- trunk/openlayers/tests/Layer/TileCache.html (modified) (8 diffs)
- trunk/openlayers/tests/Layer/Vector.html (modified) (4 diffs)
- trunk/openlayers/tests/Layer/WMS.html (modified) (12 diffs)
- trunk/openlayers/tests/Layer/Yahoo.html (modified) (4 diffs)
- trunk/openlayers/tests/Map.html (modified) (20 diffs)
- trunk/openlayers/tests/Marker.html (modified) (5 diffs)
- trunk/openlayers/tests/Marker/Box.html (modified) (6 diffs)
- trunk/openlayers/tests/Popup.html (modified) (3 diffs)
- trunk/openlayers/tests/Popup/Anchored.html (modified) (1 diff)
- trunk/openlayers/tests/Projection.html (modified) (1 diff)
- trunk/openlayers/tests/Tile.html (modified) (3 diffs)
- trunk/openlayers/tests/Tile/Image.html (modified) (6 diffs)
- trunk/openlayers/tests/Tile/WFS.html (modified) (1 diff)
- trunk/openlayers/tests/Util.html (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/tests/BaseTypes.html
r6719 r6724 4 4 <script type="text/javascript"> 5 5 6 function test_ 01_String_startsWith(t) {6 function test_String_startsWith(t) { 7 7 t.plan(3); 8 8 … … 20 20 } 21 21 22 function test_ 02_String_contains(t) {22 function test_String_contains(t) { 23 23 t.plan(4); 24 24 … … 35 35 } 36 36 37 function test_ 03_String_trim(t) {37 function test_String_trim(t) { 38 38 t.plan(5); 39 39 … … 58 58 } 59 59 60 function test_ 05_String_camelize(t) {60 function test_String_camelize(t) { 61 61 t.plan(7); 62 62 … … 144 144 145 145 146 function test_ 06_Number_limitSigDigs(t) {146 function test_Number_limitSigDigs(t) { 147 147 t.plan(9); 148 148 … … 182 182 } 183 183 184 function test_ 07_Function_bind(t) {184 function test_Function_bind(t) { 185 185 t.plan(12); 186 186 … … 207 207 } 208 208 209 function test_ 08_Function_bindAsEventListener(t) {209 function test_Function_bindAsEventListener(t) { 210 210 t.plan(4); 211 211 trunk/openlayers/tests/BaseTypes/Bounds.html
r6719 r6724 4 4 <script type="text/javascript"> 5 5 var bounds; 6 function test_ 01_Bounds_constructor (t) {6 function test_Bounds_constructor (t) { 7 7 t.plan( 17 ); 8 8 … … 39 39 } 40 40 41 function test_ 01a_Bounds_constructorFromStrings(t) {41 function test_Bounds_constructorFromStrings(t) { 42 42 t.plan( 6 ); 43 43 bounds = new OpenLayers.Bounds("0","2","10","4"); … … 51 51 } 52 52 53 function test_ 02_Bounds_toBBOX(t) {53 function test_Bounds_toBBOX(t) { 54 54 t.plan( 5 ); 55 55 bounds = new OpenLayers.Bounds(1,2,3,4); … … 66 66 } 67 67 68 function test_ 03_Bounds_toString(t) {68 function test_Bounds_toString(t) { 69 69 t.plan( 1 ); 70 70 bounds = new OpenLayers.Bounds(1,2,3,4); … … 102 102 } 103 103 104 function test_ 04_Bounds_contains(t) {104 function test_Bounds_contains(t) { 105 105 t.plan( 6 ); 106 106 bounds = new OpenLayers.Bounds(10,10,40,40); … … 118 118 } 119 119 120 function test_ 05_Bounds_fromString(t) {120 function test_Bounds_fromString(t) { 121 121 t.plan( 10 ); 122 122 bounds = OpenLayers.Bounds.fromString("1,2,3,4"); … … 136 136 } 137 137 138 function test_ 06_Bounds_getSize(t) {138 function test_Bounds_getSize(t) { 139 139 t.plan( 1 ); 140 140 var bounds = new OpenLayers.Bounds(0,10,100,120); … … 143 143 } 144 144 145 function test_ 07_Bounds_clone(t) {145 function test_Bounds_clone(t) { 146 146 t.plan( 6 ); 147 147 var oldBounds = new OpenLayers.Bounds(1,2,3,4); … … 157 157 } 158 158 159 function test_ 08a_Bounds_intersectsBounds(t) {159 function test_Bounds_intersectsBounds(t) { 160 160 t.plan( 17 ); 161 161 … … 197 197 } 198 198 199 function test_ 08b_Bounds_containsBounds(t) {199 function test_Bounds_containsBounds(t) { 200 200 t.plan( 35 ); 201 201 containerBounds = new OpenLayers.Bounds(10,10,40,40); … … 252 252 } 253 253 254 function test_ 09_Bounds_determineQuadrant(t) {254 function test_Bounds_determineQuadrant(t) { 255 255 256 256 t.plan( 4 ); … … 268 268 } 269 269 270 function test_ 10_Bounds_oppositeQuadrant(t) {270 function test_Bounds_oppositeQuadrant(t) { 271 271 272 272 t.plan( 4 ); … … 278 278 } 279 279 280 function test_ 11_Bounds_equals(t) {280 function test_Bounds_equals(t) { 281 281 t.plan( 3 ); 282 282 var boundsA = new OpenLayers.Bounds(1,2,3,4); … … 289 289 } 290 290 291 function test_ 12_Bounds_getHeight_getWidth(t) {291 function test_Bounds_getHeight_getWidth(t) { 292 292 t.plan( 2 ); 293 293 var bounds = new OpenLayers.Bounds(10,20,100,120); … … 298 298 } 299 299 300 function test_ 13_Bounds_getCenters(t) {300 function test_Bounds_getCenters(t) { 301 301 t.plan( 2 ); 302 302 var bounds = new OpenLayers.Bounds(0,20,100,120); … … 306 306 } 307 307 308 function test_ 14_Bounds_fromArray(t) {308 function test_Bounds_fromArray(t) { 309 309 t.plan( 5 ); 310 310 … … 318 318 } 319 319 320 function test_ 15_Bounds_fromSize(t) {320 function test_Bounds_fromSize(t) { 321 321 t.plan( 5 ); 322 322 … … 333 333 334 334 335 function test_ 16_Bounds_extend(t) {335 function test_Bounds_extend(t) { 336 336 t.plan( 9 ); 337 337 … … 430 430 431 431 432 function test_ 16_Bounds_wrapDateLine(t) {432 function test_Bounds_wrapDateLine(t) { 433 433 t.plan( 13 ); 434 434 … … 531 531 } 532 532 533 function test_ 17_Bounds_add(t) {533 function test_Bounds_add(t) { 534 534 t.plan( 8 ); 535 535 trunk/openlayers/tests/BaseTypes/Class.html
r6719 r6724 168 168 169 169 // Remove this at 3.0 170 function test_ 01_Class_create (t) {170 function test_Class_create (t) { 171 171 t.plan( 3 ); 172 172 var cls = OpenLayers.Class.create(); … … 190 190 191 191 // Remove this at 3.0 192 function test_ 02_Class_inherit (t) {192 function test_Class_inherit (t) { 193 193 t.plan( 20 ); 194 194 var A = OpenLayers.Class.create(); trunk/openlayers/tests/BaseTypes/Element.html
r6720 r6724 6 6 <script type="text/javascript"> 7 7 8 function test_ 01_Element_visible(t) {8 function test_Element_visible(t) { 9 9 t.plan(3); 10 10 … … 25 25 } 26 26 27 function test_ 02_Element_toggle(t) {27 function test_Element_toggle(t) { 28 28 t.plan(2); 29 29 … … 46 46 } 47 47 48 function test_ 03_Element_hide(t) {48 function test_Element_hide(t) { 49 49 t.plan(2); 50 50 … … 67 67 } 68 68 69 function test_ 04_Element_show(t) {69 function test_Element_show(t) { 70 70 t.plan(2); 71 71 … … 88 88 } 89 89 90 function test_ 05_Element_remove(t) {90 function test_Element_remove(t) { 91 91 t.plan(1); 92 92 … … 101 101 } 102 102 103 function test_ 06_Element_getHeight(t) {103 function test_Element_getHeight(t) { 104 104 t.plan(1); 105 105 … … 111 111 } 112 112 113 function test_ 07_Element_getDimensions(t) {113 function test_Element_getDimensions(t) { 114 114 t.plan(4); 115 115 … … 137 137 } 138 138 139 function test_ 08_Element_getStyle(t) {139 function test_Element_getStyle(t) { 140 140 t.plan(4); 141 141 trunk/openlayers/tests/BaseTypes/LonLat.html
r6719 r6724 6 6 var lonlat; 7 7 8 function test_ 01_LonLat_constructor (t) {8 function test_LonLat_constructor (t) { 9 9 t.plan( 4 ); 10 10 lonlat = new OpenLayers.LonLat(6, 5); … … 15 15 } 16 16 17 function test_ 01a_LonLat_constructorFromStrings (t) {17 function test_LonLat_constructorFromStrings (t) { 18 18 t.plan( 4 ); 19 19 lonlat = new OpenLayers.LonLat("6", "5"); … … 24 24 } 25 25 26 function test_ 02_LonLat_toString(t) {26 function test_LonLat_toString(t) { 27 27 t.plan( 1 ); 28 28 lonlat = new OpenLayers.LonLat(5,6); … … 30 30 } 31 31 32 function test_ 02A_LonLat_toShortString(t) {32 function test_LonLat_toShortString(t) { 33 33 t.plan( 1 ); 34 34 lonlat = new OpenLayers.LonLat(5,6); … … 36 36 } 37 37 38 function test_ 03_LonLat_clone(t) {38 function test_LonLat_clone(t) { 39 39 t.plan( 3 ); 40 40 oldLonLat = new OpenLayers.LonLat(5,6); … … 47 47 } 48 48 49 function test_ 04_LonLat_add(t) {49 function test_LonLat_add(t) { 50 50 t.plan( 8 ); 51 51 … … 74 74 } 75 75 76 function test_ 06_LonLat_equals(t) {76 function test_LonLat_equals(t) { 77 77 t.plan( 5 ); 78 78 lonlat = new OpenLayers.LonLat(5,6); … … 94 94 } 95 95 96 function test_ 07_LonLat_fromString(t) {96 function test_LonLat_fromString(t) { 97 97 t.plan( 2 ); 98 98 lonlat = OpenLayers.LonLat.fromString("6,5"); … … 117 117 } 118 118 119 function test_ 08_LonLat_wrapDateLine(t) {119 function test_LonLat_wrapDateLine(t) { 120 120 t.plan( 6 ); 121 121 trunk/openlayers/tests/BaseTypes/Pixel.html
r6719 r6724 5 5 var pixel; 6 6 7 function test_ 01_Pixel_constructor (t) {7 function test_Pixel_constructor (t) { 8 8 t.plan( 4 ); 9 9 pixel = new OpenLayers.Pixel(5,6); … … 14 14 } 15 15 16 function test_ 01a_Pixel_constructorFromString (t) {16 function test_Pixel_constructorFromString (t) { 17 17 t.plan( 4 ); 18 18 pixel = new OpenLayers.Pixel("5","6"); … … 23 23 } 24 24 25 function test_ 02_Pixel_toString(t) {25 function test_Pixel_toString(t) { 26 26 t.plan( 1 ); 27 27 pixel = new OpenLayers.Pixel(5,6); … … 29 29 } 30 30 31 function test_ 03_Pixel_clone(t) {31 function test_Pixel_clone(t) { 32 32 t.plan( 4 ); 33 33 oldPixel = new OpenLayers.Pixel(5,6); … … 41 41 } 42 42 43 function test_ 06_Pixel_equals(t) {43 function test_Pixel_equals(t) { 44 44 t.plan( 5 ); 45 45 pixel = new OpenLayers.Pixel(5,6); … … 61 61 } 62 62 63 function test_ 07_Pixel_add(t) {63 function test_Pixel_add(t) { 64 64 t.plan( 8 ); 65 65 … … 89 89 } 90 90 91 function test_ 08_Pixel_offset(t) {91 function test_Pixel_offset(t) { 92 92 t.plan( 4 ); 93 93 trunk/openlayers/tests/BaseTypes/Size.html
r6719 r6724 5 5 var Size; 6 6 7 function test_ 01_Size_constructor (t) {7 function test_Size_constructor (t) { 8 8 t.plan( 4 ); 9 9 size = new OpenLayers.Size(5,6); … … 14 14 } 15 15 16 function test_ 01a_Size_constructorFromString (t) {16 function test_Size_constructorFromString (t) { 17 17 t.plan( 4 ); 18 18 size = new OpenLayers.Size("5","6"); … … 23 23 } 24 24 25 function test_ 02_Size_toString(t) {25 function test_Size_toString(t) { 26 26 t.plan( 1 ); 27 27 size = new OpenLayers.Size(5,6); … … 29 29 } 30 30 31 function test_ 03_Size_clone(t) {31 function test_Size_clone(t) { 32 32 t.plan( 3 ); 33 33 … … 41 41 } 42 42 43 function test_ 04_Size_equals(t) {43 function test_Size_equals(t) { 44 44 t.plan( 5 ); 45 45 size = new OpenLayers.Size(5,6); trunk/openlayers/tests/Control/Attribution.html
r6719 r6724 4 4 <script type="text/javascript"> 5 5 var map; 6 function test_ 01_Control_Attribution_constructor (t) {6 function test_Control_Attribution_constructor (t) { 7 7 t.plan( 2 ); 8 8 trunk/openlayers/tests/Control/KeyboardDefaults.html
r6719 r6724 4 4 <script type="text/javascript"> 5 5 var map; 6 function test_ 01_Control_KeyboardDefaults_constructor (t) {6 function test_Control_KeyboardDefaults_constructor (t) { 7 7 t.plan( 2 ); 8 8 … … 13 13 } 14 14 15 function test_ 02_Control_KeyboardDefaults_addControl (t) {15 function test_Control_KeyboardDefaults_addControl (t) { 16 16 t.plan( 4 ); 17 17 … … 27 27 } 28 28 29 function test_ 03_Control_KeyboardDefaults_KeyDownEvent (t) {29 function test_Control_KeyboardDefaults_KeyDownEvent (t) { 30 30 t.plan( 10 ); 31 31 trunk/openlayers/tests/Control/LayerSwitcher.html
r6719 r6724 5 5 var map; 6 6 7 function test_ 01_Control_LayerSwitcher_constructor (t) {7 function test_Control_LayerSwitcher_constructor (t) { 8 8 t.plan( 2 ); 9 9 … … 13 13 } 14 14 15 function test_ 02_Control_LayerSwitcher_draw (t) {15 function test_Control_LayerSwitcher_draw (t) { 16 16 t.plan( 2 ); 17 17 … … 36 36 } 37 37 38 function test_ 03_Control_LayerSwitcher_loadContents(t) {38 function test_Control_LayerSwitcher_loadContents(t) { 39 39 40 40 t.plan( 5 ); … … 64 64 65 65 66 function test_ 04_Control_LayerSwitcher_redraw (t) {66 function test_Control_LayerSwitcher_redraw (t) { 67 67 68 68 t.plan( (OpenLayers.Util.getBrowserName() == "opera" ? 9 : 19 ) ); … … 136 136 137 137 } 138 function test_ 05_Control_LayerSwitcher_ascendingw (t) {138 function test_Control_LayerSwitcher_ascendingw (t) { 139 139 140 140 t.plan( 4 ); trunk/openlayers/tests/Control/MousePosition.html
r6719 r6724 4 4 <script type="text/javascript"> 5 5 var map, control; 6 function test_ 01_Control_MousePosition_constructor (t) {6 function test_Control_MousePosition_constructor (t) { 7 7 t.plan( 2 ); 8 8 … … 11 11 t.eq( control.displayClass, "olControlMousePosition", "displayClass is correct" ); 12 12 } 13 function test_ 02_Control_MousePosition_redraw_noLayer_displayProjection(t) {13 function test_Control_MousePosition_redraw_noLayer_displayProjection(t) { 14 14 t.plan(2); 15 15 control = new OpenLayers.Control.MousePosition({'displayProjection': new OpenLayers.Projection("WGS84")}); … … 54 54 } 55 55 56 function test_ 02_Control_MousePosition_redraw_noLayer_displayProjection(t) {56 function test_Control_MousePosition_redraw_noLayer_displayProjection(t) { 57 57 t.plan(3); 58 58 var control = new OpenLayers.Control.MousePosition(); trunk/openlayers/tests/Control/MouseToolbar.html
r6719 r6724 4 4 <script type="text/javascript"> 5 5 var map; 6 function test_ 01_Control_MouseToolbar_constructor (t) {6 function test_Control_MouseToolbar_constructor (t) { 7 7 t.plan( 1 ); 8 8 … … 10 10 t.ok( control instanceof OpenLayers.Control.MouseToolbar, "new OpenLayers.Control.MouseToolbar returns object" ); 11 11 } 12 function test_ 02_Control_MouseToolbar_addControl (t) {12 function test_Control_MouseToolbar_addControl (t) { 13 13 t.plan( 8 ); 14 14 map = new OpenLayers.Map('map'); … … 25 25 26 26 } 27 function test_ 03_Control_MouseToolbar_control_events (t) {27 function test_Control_MouseToolbar_control_events (t) { 28 28 t.plan( 1 ); 29 29 if ((navigator.userAgent.indexOf("compatible") == -1)) { trunk/openlayers/tests/Control/NavToolbar.html
r6719 r6724 4 4 <script type="text/javascript"> 5 5 var map; 6 function test_ 01_Control_NavToolbar_constructor (t) {6 function test_Control_NavToolbar_constructor (t) { 7 7 t.plan( 4 ); 8 8 control = new OpenLayers.Control.NavToolbar(); … … 12 12 t.ok( control.controls[1] instanceof OpenLayers.Control.ZoomBox, "NavToolbar contains Control.ZoomBox object" ); 13 13 } 14 function test_ 02_Control_NavToolbar_addControl (t) {14 function test_Control_NavToolbar_addControl (t) { 15 15 t.plan( 6 ); 16 16 map = new OpenLayers.Map('map'); trunk/openlayers/tests/Control/PanZoom.html
r6722 r6724 4 4 <script type="text/javascript"> 5 5 var map; 6 function test_ 01_Control_PanZoom_constructor (t) {6 function test_Control_PanZoom_constructor (t) { 7 7 t.plan( 4 ); 8 8 … … 14 14 t.eq( control.position.y, 100, "PanZoom y Set correctly."); 15 15 } 16 function test_ 02_Control_PanZoom_addControl (t) {16 function test_Control_PanZoom_addControl (t) { 17 17 t.plan( 8 ); 18 18 map = new OpenLayers.Map('map'); … … 32 32 } 33 33 34 function test_ 03_Control_PanZoom_control_events (t) {34 function test_Control_PanZoom_control_events (t) { 35 35 36 36 if ( !window.document.createEvent || OpenLayers.Util.getBrowserName() == "opera") { trunk/openlayers/tests/Control/PanZoomBar.html
r6719 r6724 4 4 <script type="text/javascript"> 5 5 var map; 6 function test_ 01_Control_PanZoomBar_constructor (t) {6 function test_Control_PanZoomBar_constructor (t) { 7 7 t.plan( 4 ); 8 8 … … 13 13 t.eq( control.position.y, 100, "PanZoom y Set correctly."); 14 14 } 15 function test_ 02_Control_PanZoomBar_addControl (t) {15 function test_Control_PanZoomBar_addControl (t) { 16 16 t.plan( 8 ); 17 17 map = new OpenLayers.Map('map', {controls:[]}); trunk/openlayers/tests/Control/Panel.html
r6719 r6724 10 10 t.eq( control.displayClass, "olControlPanel", "displayClass is correct" ); 11 11 } 12 function test_ 01_Control_Panel_constructor (t) {12 function test_Control_Panel_constructor (t) { 13 13 t.plan(5); 14 14 var map = new OpenLayers.Map('map'); … … 47 47 "activated the other tool control, the first one is inactive and the toggle control still active."); 48 48 } 49 function test_ 02_Control_Panel_titles (t) {49 function test_Control_Panel_titles (t) { 50 50 t.plan(2); 51 51 var panel = new OpenLayers.Control.Panel(); trunk/openlayers/tests/Control/Permalink.html
r6719 r6724 4 4 <script type="text/javascript"> 5 5 var map; 6 function test_ 01_Control_Permalink_constructor (t) {6 function test_Control_Permalink_constructor (t) { 7 7 t.plan( 2 ); 8 8 … … 20 20 t.ok(true, "permalink didn't bomb out."); 21 21 } 22 function test_ 02_Control_Permalink_initwithelem (t) {22 function test_Control_Permalink_initwithelem (t) { 23 23 t.plan( 1 ); 24 24 … … 26 26 t.ok(true, "If the above line doesn't throw an error, we're safe."); 27 27 } 28 function test_ 02_Control_Permalink_updateLinks (t) {28 function test_Control_Permalink_updateLinks (t) { 29 29 t.plan( 3 ); 30 30 … … 46 46 t.ok(OpenLayers.Util.isEquivalentUrl(OpenLayers.Util.getElement('permalink').href, location+"?zoom=2&lat=0&lon=1.75781&layers=BF"), 'setVisibility sets permalink'); 47 47 } 48 function test_ 03_Control_Permalink_updateLinksBase (t) {48 function test_Control_Permalink_updateLinksBase (t) { 49 49 t.plan( 2 ); 50 50 … … 60 60 t.eq(OpenLayers.Util.getElement('permalink').href, OpenLayers.Util.getElement('edit_permalink').href, "Panning sets permalink with base"); 61 61 } 62 function test_ 04_Control_Permalink_noElement (t) {62 function test_Control_Permalink_noElement (t) { 63 63 t.plan( 2 ); 64 64 control = new OpenLayers.Control.Permalink( ); … … 68 68 t.eq(map.controls[4].div.firstChild.nodeName, "A", "Permalink control creates div with 'a' inside." ); 69 69 } 70 function test_ 05_Control_Permalink_base_with_query (t) {70 function test_Control_Permalink_base_with_query (t) { 71 71 t.plan( 3 ); 72 72 … … 95 95 } 96 96 97 function test_ 06_Control_Permalink_nonRepeating (t) {97 function test_Control_Permalink_nonRepeating (t) { 98 98 t.plan( 2 ); 99 99 trunk/openlayers/tests/Control/Scale.html
r6719 r6724 4 4 <script type="text/javascript"> 5 5 var map; 6 function test_ 01_Control_Scale_constructor (t) {6 function test_Control_Scale_constructor (t) { 7 7 t.plan( 2 ); 8 8 … … 11 11 t.eq( control.displayClass, "olControlScale", "displayClass is correct" ); 12 12 } 13 function test_ 02_Control_Scale_initwithelem (t) {13 function test_Control_Scale_initwithelem (t) { 14 14 t.plan( 1 ); 15 15 … … 17 17 t.ok(true, "If this happens, then we passed. (FF throws an error above otherwise)"); 18 18 } 19 function test_ 02_Control_Scale_updateScale (t) {19 function test_Control_Scale_updateScale (t) { 20 20 t.plan( 4 ); 21 21 … … 34 34 t.eq(OpenLayers.Util.getElement('scale').innerHTML, "Scale = 1 : 110", "Scale of 100 isn't rounded" ); 35 35 } 36 function test_ 03_Control_Scale_internalScale (t) {36 function test_Control_Scale_internalScale (t) { 37 37 t.plan(2); 38 38 control = new OpenLayers.Control.Scale(); trunk/openlayers/tests/Events.html
r6719 r6724 7 7 var a; 8 8 9 function test_ 01_Events_constructor (t) {9 function test_Events_constructor (t) { 10 10 var mapDiv = OpenLayers.Util.getElement('map'); 11 11 var obj = {result: 0}; … … 41 41 } 42 42 43 function test_ 02_Events_register_unregister(t) {43 function test_Events_register_unregister(t) { 44 44 45 45 t.plan( 18 ); … … 124 124 } 125 125 126 function test_ 03_Events_remove(t) {126 function test_Events_remove(t) { 127 127 128 128 t.plan( 2 ); … … 151 151 } 152 152 153 function test_ 04_Events_triggerEvent(t) {153 function test_Events_triggerEvent(t) { 154 154 155 155 t.plan(13); … … 252 252 } 253 253 254 function test_ 05_Events_destroy (t) {254 function test_Events_destroy (t) { 255 255 t.plan(2); 256 256 … … 270 270 } 271 271 272 function test_ 06_Event(t) {272 function test_Event(t) { 273 273 t.plan(24); 274 274 … … 354 354 } 355 355 356 function test_ 06_Events_addEventType(t) {356 function test_Events_addEventType(t) { 357 357 358 358 t.plan( 6 ); trunk/openlayers/tests/Feature.html
r6719 r6724 7 7 var feature, layer; 8 8 9 function test_ 01_Feature_constructor (t) {9 function test_Feature_constructor (t) { 10 10 t.plan( 7 ); 11 11 … … 30 30 } 31 31 32 function test_ 02_Feature_createPopup (t) {32 function test_Feature_createPopup (t) { 33 33 t.plan(1); 34 34 var layer = {}; … … 47 47 t.eq(popup.contentDiv.style[prop], "auto", 'overflow on popup is correct'); 48 48 } 49 function test_ 02_Feature_createMarker (t) {49 function test_Feature_createMarker (t) { 50 50 t.plan(1); 51 51 t.ok(true); … … 97 97 } 98 98 99 function test_ 03_Feature_onScreen(t) {99 function test_Feature_onScreen(t) { 100 100 t.plan( 2 ); 101 101 … … 123 123 } 124 124 125 function test_ 04_Feature_createPopup(t) {125 function test_Feature_createPopup(t) { 126 126 t.plan(11); 127 127 … … 177 177 } 178 178 179 function test_ 04_Feature_destroyPopup(t) {179 function test_Feature_destroyPopup(t) { 180 180 t.plan(2); 181 181 trunk/openlayers/tests/Format.html
r6719 r6724 4 4 <script type="text/javascript"> 5 5 6 function test_ 01_Format_constructor(t) {6 function test_Format_constructor(t) { 7 7 t.plan(4); 8 8 trunk/openlayers/tests/Geometry.html
r6719
