OpenLayers OpenLayers

Changeset 5914

Show
Ignore:
Timestamp:
01/27/08 21:47:56 (1 year ago)
Author:
pagameba
Message:

merge sandbox r5849 to HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/pagameba/transition-resize/doc/authors.txt

    r5822 r5914  
    1414Eric Lemoine 
    1515Philip Lindsay 
     16Martijn van Oosterhout 
    1617Corey Puffault 
    1718Gregers Rygg 
  • sandbox/pagameba/transition-resize/examples/panel.html

    r5822 r5914  
    7070             
    7171             
    72             zb = new OpenLayers.Control.ZoomBox(); 
     72            zb = new OpenLayers.Control.ZoomBox( 
     73                {title:"Zoom box: Selecting it you can zoom on an area by clicking and dragging."}); 
    7374            var panel = new OpenLayers.Control.Panel({defaultControl: zb}); 
    7475            panel.addControls([ 
    75                 new OpenLayers.Control.MouseDefaults(), 
     76                new OpenLayers.Control.MouseDefaults( 
     77                    {title:'You can use the default mouse configuration'}),  
    7678                zb, 
    77                 new OpenLayers.Control.DrawFeature(vlayer, OpenLayers.Handler.Path), 
    78                 new OpenLayers.Control.ZoomToMaxExtent() 
     79                new OpenLayers.Control.DrawFeature(vlayer, OpenLayers.Handler.Path, 
     80                    {title:'Draw a feature'}), 
     81                new OpenLayers.Control.ZoomToMaxExtent({title:"Zoom to the max extent"})  
    7982            ]); 
    8083            map.addControl(panel); 
  • sandbox/pagameba/transition-resize/examples/proxy.cgi

    r4371 r5914  
    1818allowedHosts = ['www.openlayers.org', 'openlayers.org',  
    1919                'labs.metacarta.com', 'world.freemap.in',  
    20                 'prototype.openmnnd.org', 'geo.openplans.org'] 
     20                'prototype.openmnnd.org', 'geo.openplans.org', 
     21                'www.openstreetmap.org'] 
    2122 
    2223method = os.environ["REQUEST_METHOD"] 
  • sandbox/pagameba/transition-resize/examples/wfs-t.html

    r5822 r5914  
    7777 
    7878  <div id="docs"> 
    79     This is an example of using a WFS layer type. 
     79    This is an example of using a WFS layer type. Note that it requires a  
     80    working GeoServer install, which the OpenLayers project does not maintain; 
     81    however, if you're interested, you should be able to point this against 
     82    a default GeoServer setup without too much trouble. 
    8083   </div> 
    8184 
  • sandbox/pagameba/transition-resize/lib/OpenLayers.js

    r5822 r5914  
    130130            "OpenLayers/Control.js", 
    131131            "OpenLayers/Control/Attribution.js", 
     132            "OpenLayers/Control/Button.js", 
    132133            "OpenLayers/Control/ZoomBox.js", 
    133134            "OpenLayers/Control/ZoomToMaxExtent.js", 
     
    180181            "OpenLayers/Format/WFS.js", 
    181182            "OpenLayers/Format/WKT.js", 
     183            "OpenLayers/Format/OSM.js", 
    182184            "OpenLayers/Format/SLD.js", 
    183185            "OpenLayers/Format/Text.js", 
  • sandbox/pagameba/transition-resize/lib/OpenLayers/Ajax.js

    r5822 r5914  
    6161 
    6262    if (OpenLayers.ProxyHost && OpenLayers.String.startsWith(uri, "http")) { 
    63         uri = OpenLayers.ProxyHost + escape(uri); 
     63        uri = OpenLayers.ProxyHost + encodeURIComponent(uri); 
    6464    } 
    6565 
     
    431431            return this.transport.status || 0; 
    432432        } catch (e) { 
    433             return 0 
     433            return 0; 
    434434        } 
    435435    }, 
     
    487487            return this.transport.getResponseHeader(name); 
    488488        } catch (e) { 
    489             return null 
     489            return null; 
    490490        } 
    491491    }, 
  • sandbox/pagameba/transition-resize/lib/OpenLayers/Control.js

    r5822 r5914  
    8585     */ 
    8686    displayClass: "", 
     87     
     88    /** 
     89    * Property: title   
     90    * {string}  This property is used for showing a tooltip over the   
     91    * Control.   
     92    */  
     93    title: "", 
    8794 
    8895    /**  
     
    173180            this.div = OpenLayers.Util.createDiv(this.id); 
    174181            this.div.className = this.displayClass; 
     182            if (this.title != "") { 
     183                this.div.title = this.title; 
     184            } 
    175185        } 
    176186        if (px != null) { 
  • sandbox/pagameba/transition-resize/lib/OpenLayers/Control/ArgParser.js

    r5823 r5914  
    8787 
    8888            var args = OpenLayers.Util.getParameters(); 
     89            // Be careful to set layer first, to not trigger unnecessary layer loads 
     90            if (args.layers) { 
     91                this.layers = args.layers; 
     92     
     93                // when we add a new layer, set its visibility  
     94                this.map.events.register('addlayer', this,  
     95                                         this.configureLayers); 
     96                this.configureLayers(); 
     97            } 
    8998            if (args.lat && args.lon) { 
    9099                this.center = new OpenLayers.LonLat(parseFloat(args.lon), 
     
    98107                                         this.setCenter); 
    99108                this.setCenter(); 
    100             } 
    101      
    102             if (args.layers) { 
    103                 this.layers = args.layers; 
    104      
    105                 // when we add a new layer, set its visibility  
    106                 this.map.events.register('addlayer', this,  
    107                                          this.configureLayers); 
    108                 this.configureLayers(); 
    109109            } 
    110110        } 
  • sandbox/pagameba/transition-resize/lib/OpenLayers/Control/ModifyFeature.js

    r5822 r5914  
    262262            this.vertices = []; 
    263263            this.dragControl.deactivate(); 
    264             if(this.feature) { 
     264            if(this.feature && this.feature.geometry) { 
    265265                this.selectControl.unselect.apply(this.selectControl, 
    266266                                                  [this.feature]); 
  • sandbox/pagameba/transition-resize/lib/OpenLayers/Control/MousePosition.js

    r5822 r5914  
    131131        } 
    132132         
     133        var newHtml = this.formatOutput(lonLat); 
     134 
     135        if (newHtml != this.element.innerHTML) { 
     136            this.element.innerHTML = newHtml; 
     137        } 
     138    }, 
     139 
     140    /** 
     141     * Method: formatOutput 
     142     * Override to provide custom display output 
     143     * 
     144     * Parameters: 
     145     * lonLat - {<OpenLayers.LonLat>} Location to display 
     146     */ 
     147    formatOutput: function(lonLat) { 
    133148        var digits = parseInt(this.numdigits); 
    134149        var newHtml = 
     
    138153            lonLat.lat.toFixed(digits) + 
    139154            this.suffix; 
    140  
    141         if (newHtml != this.element.innerHTML) { 
    142             this.element.innerHTML = newHtml; 
    143         } 
    144     }, 
     155        return newHtml; 
     156     }, 
    145157 
    146158    /**  
  • sandbox/pagameba/transition-resize/lib/OpenLayers/Control/Navigation.js

    r5822 r5914  
    5555    }, 
    5656 
     57    /** 
     58     * Method: destroy 
     59     * The destroy method is used to perform any clean up before the control 
     60     * is dereferenced.  Typically this is where event listeners are removed 
     61     * to prevent memory leaks. 
     62     */ 
     63    destroy: function() { 
     64        OpenLayers.Control.prototype.destroy.apply(this,arguments); 
     65        this.deactivate(); 
     66        this.dragPan.destroy(); 
     67        this.wheelHandler.destroy(); 
     68        this.clickHandler.destroy(); 
     69        this.zoomBox.destroy(); 
     70    }, 
     71     
    5772    /** 
    5873     * Method: activate 
  • sandbox/pagameba/transition-resize/lib/OpenLayers/Control/Panel.js

    r5822 r5914  
    173173            var textNode = document.createTextNode(" "); 
    174174            controls[i].panel_div = element; 
     175            if (controls[i].title != "") { 
     176                controls[i].panel_div.title = controls[i].title; 
     177            } 
    175178            OpenLayers.Event.observe(controls[i].panel_div, "click",  
    176179                OpenLayers.Function.bind(this.onClick, this, controls[i])); 
  • sandbox/pagameba/transition-resize/lib/OpenLayers/Control/SelectFeature.js

    r5822 r5914  
    221221    select: function(feature) { 
    222222        // Store feature style for restoration later 
    223         if(feature.originalStyle == null) { 
     223        if(feature.originalStyle != feature.style) { 
    224224            feature.originalStyle = feature.style; 
    225225        } 
    226226        this.layer.selectedFeatures.push(feature); 
    227         feature.style = this.selectStyle; 
     227 
     228        var selectStyle = this.selectStyle; 
     229 
     230        if (feature.style.CLASS_NAME == "OpenLayers.Style") { 
     231            feature.style = feature.style.createStyle(feature); 
     232        } else { 
     233            feature.style = OpenLayers.Util.extend({}, feature.style); 
     234        } 
     235        if (selectStyle.CLASS_NAME == "OpenLayers.Style") { 
     236            selectStyle = selectStyle.createStyle(feature); 
     237        } 
     238        OpenLayers.Util.extend(feature.style, selectStyle); 
     239 
    228240        this.layer.drawFeature(feature); 
    229241        this.onSelect(feature); 
  • sandbox/pagameba/transition-resize/lib/OpenLayers/Feature/Vector.js

    r5822 r5914  
    280280 *  - hoverPointUnit: "%", 
    281281 *  - pointerEvents: "visiblePainted" 
     282 *  - cursor: "" 
    282283 * 
    283284 * Other style properties that have no default values: 
     
    307308        hoverPointRadius: 1, 
    308309        hoverPointUnit: "%", 
    309         pointerEvents: "visiblePainted" 
     310        pointerEvents: "visiblePainted", 
     311        cursor: "" 
    310312    }, 
    311313    'select': { 
     
    342344        hoverPointRadius: 1, 
    343345        hoverPointUnit: "%", 
    344         pointerEvents: "visiblePainted" 
     346        pointerEvents: "visiblePainted", 
     347        cursor: "" 
    345348    } 
    346349};     
  • sandbox/pagameba/transition-resize/lib/OpenLayers/Format/WFS.js

    r5822 r5914  
    5959    write: function(features) { 
    6060         
    61         var transaction = document.createElementNS('http://www.opengis.net/wfs', 'wfs:Transaction'); 
     61        var transaction = this.createElementNS('http://www.opengis.net/wfs', 'wfs:Transaction'); 
    6262        transaction.setAttribute("version","1.0.0"); 
    6363        transaction.setAttribute("service","WFS"); 
     
    8686    createFeatureXML: function(feature) { 
    8787        var geometryNode = this.buildGeometryNode(feature.geometry); 
    88         var geomContainer = document.createElementNS(this.featureNS, "feature:" + this.geometryName); 
     88        var geomContainer = this.createElementNS(this.featureNS, "feature:" + this.geometryName); 
    8989        geomContainer.appendChild(geometryNode); 
    90         var featureContainer = document.createElementNS(this.featureNS, "feature:" + this.featureName); 
     90        var featureContainer = this.createElementNS(this.featureNS, "feature:" + this.featureName); 
    9191        featureContainer.appendChild(geomContainer); 
    9292        for(var attr in feature.attributes) { 
     
    9696                nodename = attr.split(":")[1]; 
    9797            }     
    98             var attrContainer = document.createElementNS(this.featureNS, "feature:" + nodename); 
     98            var attrContainer = this.createElementNS(this.featureNS, "feature:" + nodename); 
    9999            attrContainer.appendChild(attrText); 
    100100            featureContainer.appendChild(attrContainer); 
     
    111111     */ 
    112112    insert: function(feature) { 
    113         var insertNode = document.createElementNS(this.wfsns, 'wfs:Insert'); 
     113        var insertNode = this.createElementNS(this.wfsns, 'wfs:Insert'); 
    114114        insertNode.appendChild(this.createFeatureXML(feature)); 
    115115        return insertNode; 
     
    125125    update: function(feature) { 
    126126        if (!feature.fid) { alert("Can't update a feature for which there is no FID."); } 
    127         var updateNode = document.createElementNS(this.wfsns, 'wfs:Update'); 
     127        var updateNode = this.createElementNS(this.wfsns, 'wfs:Update'); 
    128128        updateNode.setAttribute("typeName", this.layerName); 
    129129 
    130         var propertyNode = document.createElementNS(this.wfsns, 'wfs:Property'); 
    131         var nameNode = document.createElementNS('http://www.opengis.net/wfs', 'wfs:Name'); 
     130        var propertyNode = this.createElementNS(this.wfsns, 'wfs:Property'); 
     131        var nameNode = this.createElementNS('http://www.opengis.net/wfs', 'wfs:Name'); 
    132132         
    133133        var txtNode = document.createTextNode(this.geometryName); 
     
    135135        propertyNode.appendChild(nameNode); 
    136136         
    137         var valueNode = document.createElementNS('http://www.opengis.net/wfs', 'wfs:Value'); 
     137        var valueNode = this.createElementNS('http://www.opengis.net/wfs', 'wfs:Value'); 
    138138        valueNode.appendChild(this.buildGeometryNode(feature.geometry)); 
    139139         
     
    141141        updateNode.appendChild(propertyNode); 
    142142         
    143         var filterNode = document.createElementNS('http://www.opengis.net/ogc', 'ogc:Filter'); 
    144         var filterIdNode = document.createElementNS('http://www.opengis.net/ogc', 'ogc:FeatureId'); 
     143        var filterNode = this.createElementNS('http://www.opengis.net/ogc', 'ogc:Filter'); 
     144        var filterIdNode = this.createElementNS('http://www.opengis.net/ogc', 'ogc:FeatureId'); 
    145145        filterIdNode.setAttribute("fid", feature.fid); 
    146146        filterNode.appendChild(filterIdNode); 
     
    162162            return false;  
    163163        } 
    164         var deleteNode = document.createElementNS(this.featureNS, 'wfs:Delete'); 
     164        var deleteNode = this.createElementNS(this.featureNS, 'wfs:Delete'); 
    165165        deleteNode.setAttribute("typeName", this.layerName); 
    166166 
    167         var filterNode = document.createElementNS('http://www.opengis.net/ogc', 'ogc:Filter'); 
    168         var filterIdNode = document.createElementNS('http://www.opengis.net/ogc', 'ogc:FeatureId'); 
     167        var filterNode = this.createElementNS('http://www.opengis.net/ogc', 'ogc:Filter'); 
     168        var filterIdNode = this.createElementNS('http://www.opengis.net/ogc', 'ogc:FeatureId'); 
    169169        filterIdNode.setAttribute("fid", feature.fid); 
    170170        filterNode.appendChild(filterIdNode); 
  • sandbox/pagameba/transition-resize/lib/OpenLayers/Handler/Drag.js

    r5822 r5914  
    168168             
    169169            if(!this.oldOnselectstart) { 
    170                 this.oldOnselectstart = document.onselectstart
     170                this.oldOnselectstart = (document.onselectstart) ? document.onselectstart : function() { return true; }
    171171                document.onselectstart = function() {return false;}; 
    172172            } 
  • sandbox/pagameba/transition-resize/lib/OpenLayers/Layer/Markers.js

    r5822 r5914  
    121121     */ 
    122122    removeMarker: function(marker) { 
    123         OpenLayers.Util.removeItem(this.markers, marker); 
    124         if ((marker.icon != null) && (marker.icon.imageDiv != null) && 
    125             (marker.icon.imageDiv.parentNode == this.div) ) { 
    126             this.div.removeChild(marker.icon.imageDiv);     
    127             marker.drawn = false; 
     123        if (this.markers && this.markers.length) { 
     124            OpenLayers.Util.removeItem(this.markers, marker); 
     125            if ((marker.icon != null) && (marker.icon.imageDiv != null) && 
     126                (marker.icon.imageDiv.parentNode == this.div) ) { 
     127                this.div.removeChild(marker.icon.imageDiv);     
     128                marker.drawn = false; 
     129            } 
    128130        } 
    129131    }, 
  • sandbox/pagameba/transition-resize/lib/OpenLayers/Layer/WFS.js

    r5847 r5914  
    245245                           !this.tile.bounds.containsBounds(bounds)); 
    246246 
    247         if ( (zoomChanged || firstRendering || (!dragging && outOfBounds)) 
    248              && this.inRange) { 
     247        if (zoomChanged || firstRendering || (!dragging && outOfBounds)) { 
    249248            //determine new tile bounds 
    250249            var center = bounds.getCenterLonLat(); 
  • sandbox/pagameba/transition-resize/lib/OpenLayers/Map.js

    r5822 r5914  
    2727    /** 
    2828     * Constant: EVENT_TYPES 
    29      * {Array(String)} supported application event types 
     29     * {Array(String)} Supported application event types.  Register a listener 
     30     *     for a particular event with the following syntax: 
     31     * (code) 
     32     * map.events.register(type, obj, listener); 
     33     * (end) 
     34     * 
     35     * Supported map event types: 
     36     *  - *addlayer* triggered after a layer has been added 
     37     *  - *removelayer* triggered after a layer has been removed 
     38     *  - *changelayer* triggered after a layer name change, order change, or 
     39     *      visibility change (due to resolution thresholds) 
     40     *  - *movestart* triggered after the start of a drag, pan, or zoom 
     41     *  - *move* triggered after each drag, pan, or zoom 
     42     *  - *moveend* triggered after a drag, pan, or zoom completes 
     43     *  - *popupopen* triggered after a popup opens 
     44     *  - *popupclose* triggered after a popup opens 
     45     *  - *addmarker* triggered after a marker has been added 
     46     *  - *removemarker* triggered after a marker has been removed 
     47     *  - *clearmarkers* triggered after markers have been cleared 
     48     *  - *mouseover* triggered after mouseover the map 
     49     *  - *mouseout* triggered after mouseout the map 
     50     *  - *mousemove* triggered after mousemove the map 
     51     *  - *dragstart* triggered after the start of a drag 
     52     *  - *drag* triggered after a drag 
     53     *  - *dragend* triggered after the end of a drag 
     54     *  - *changebaselayer* triggered after the base layer changes 
    3055     */ 
    3156    EVENT_TYPES: [  
     
    260285     * {Boolean} Should OpenLayers allow events on the map to fall through to 
    261286     *           other elements on the page, or should it swallow them? (#457) 
    262      *           Default is to swallow them
    263      */ 
    264     fallThrough: false, 
     287     *           Default is to fall through
     288     */ 
     289    fallThrough: true, 
    265290 
    266291    /** 
     
    13171342                var layer = this.layers[i]; 
    13181343                if (!layer.isBaseLayer) { 
    1319                      
    1320                     var moveLayer; 
    13211344                    var inRange = layer.calculateInRange(); 
    13221345                    if (layer.inRange != inRange) { 
    1323                         // Layer property has changed. We are going  
    1324                         // to call moveLayer so that the layer can be turned 
    1325                         // off or on.    
     1346                        // the inRange property has changed. If the layer is 
     1347                        // no longer in range, we turn it off right away. If 
     1348                        // the layer is no longer out of range, the moveTo 
     1349                        // call below will turn on the layer. 
    13261350                        layer.inRange = inRange; 
    1327                         moveLayer = true; 
     1351                        if (!inRange) { 
     1352                            layer.display(false); 
     1353                        } 
    13281354                        this.events.triggerEvent("changelayer"); 
    1329                     } else { 
    1330                         // If nothing has changed, then we only move the layer 
    1331                         // if it is visible and inrange. 
    1332                         moveLayer = (layer.visibility && layer.inRange); 
    13331355                    } 
    1334  
    1335                     if (moveLayer) { 
     1356                    if (inRange && layer.visibility) { 
    13361357                        layer.moveTo(bounds, zoomChanged, dragging); 
    13371358                    } 
  • sandbox/pagameba/transition-resize/lib/OpenLayers/Renderer/SVG.js

    r5847 r5914  
    242242        } 
    243243         
    244         if (style.cursor) { 
     244        if (style.cursor != null) { 
    245245            node.setAttributeNS(null, "cursor", style.cursor); 
    246246        } 
  • sandbox/pagameba/transition-resize/lib/OpenLayers/Renderer/VML.js

    r5847 r5914  
    247247        } 
    248248         
    249         if (style.cursor) { 
     249        if (style.cursor != null) { 
    250250            node.style.cursor = style.cursor; 
    251251        } 
  • sandbox/pagameba/transition-resize/tests/Control/test_Panel.html

    r5822 r5914  
    4747              "activated the other tool control, the first one is inactive and the toggle control still active."); 
    4848    } 
    49  
     49    function test_02_Control_Panel_titles (t) {  
     50        t.plan(2);  
     51        var panel = new OpenLayers.Control.Panel();  
     52        var toolControl = new OpenLayers.Control.ZoomBox({  
     53            title:"Zoom box: Selecting it you can zoom on an area by clicking and dragging."  
     54        });  
     55        panel.addControls([toolControl]);  
     56        t.eq(panel.controls.length, 1, "added a control to the panel");  
     57        t.eq(panel.controls[0].title, toolControl.panel_div.title, "the title is correctly set");  
     58    }  
     59     
    5060    function test_Control_Panel_getBy(t) { 
    5161         
  • sandbox/pagameba/transition-resize/tests/Control/test_SelectFeature.html

    r4232 r5914  
    3434     
    3535    function test_Control_SelectFeature_select(t) { 
    36         t.plan(2); 
     36        t.plan(7); 
    3737        var map = new OpenLayers.Map("map"); 
    3838        var layer = new OpenLayers.Layer.Vector(); 
     
    4646        control.unselect(feature); 
    4747        t.eq(feature.style.strokeColor, OpenLayers.Feature.Vector.style['default'].strokeColor, "feature style is set back to old style"); 
     48         
     49        // Don't ever overwrite my feature style with undefined properties from the selectStyle 
     50        feature.style = {externalGraphic: "foo.png", pointRadius: 39}; 
     51        control.selectStyle.pointRadius = undefined; 
     52        control.select(feature); 
     53        t.eq(feature.style.pointRadius, 39, "undefined style property inherited from original feature style"); 
     54        control.unselect(feature); 
     55         
     56        // Ok, that one went well. But I'm sure you cannot handle OL.Style. 
     57        feature.style = new OpenLayers.Style({externalGraphic: "foo.png", pointRadius: 39}); 
     58        control.select(feature); 
     59        t.eq(feature.style.pointRadius, 39, "undefined style property inherited from original feature style object"); 
     60        control.unselect(feature); 
     61         
     62        // Wow, but using OL.Style as selectStyle will break you. 
     63        control.selectStyle = new OpenLayers.Style({strokeColor: "green"}); 
     64        control.select(feature); 
     65        t.eq(feature.style.strokeColor, "green", "style correct if both feature.style and selectStyle are OL.Style"); 
     66        control.unselect(feature); 
     67         
     68        // Not bad, not bad. And what if I set feature.style back to a style hash? 
     69        feature.style = layer.style; 
     70        control.select(feature); 
     71        t.eq(feature.style.strokeColor, "green", "style still correct with only selectStyle being OL.Style"); 
     72        control.unselect(feature); 
     73        t.eq(feature.style.strokeColor, OpenLayers.Feature.Vector.style["default"].strokeColor, "style set back to original correctly"); 
    4874    } 
    4975     
  • sandbox/pagameba/transition-resize/tests/Handler/test_Drag.html

    r5822 r5914  
    8888 
    8989    function test_Handler_Drag_callbacks(t) { 
    90         t.plan(34); 
     90        t.plan(33); 
    9191         
    9292        var map = new OpenLayers.Map('map', {controls: []}); 
     
    169169                     "mousedown default action is disabled"); 
    170170            } else { 
    171                 t.ok(evt.xy.x == testEvents.down.xy.x && 
    172                      evt.xy.y == testEvents.down.xy.y, 
     171                t.fail( 
    173172                     "mousedown is prevented from falling to other elements"); 
    174173            } 
  • sandbox/pagameba/transition-resize/tests/Layer/test_Markers.html

    r5822 r5914  
    2424    } 
    2525    function test_98_Layer_Markers_addMarker_removeMarker (t) { 
    26         t.plan( 3 ); 
     26        t.plan( 4 ); 
    2727 
    2828        var map = new OpenLayers.Map('map'); 
     
    4141        layer.addMarker(marker); 
    4242        t.ok(  marker.icon.imageDiv.parentNode == layer.div, "addMarker adds marker image node into layer node." );  
     43 
     44        layer.markers = null; 
     45        layer.removeMarker(marker); 
     46        t.ok(true, "removing marker when no markers present does not script error"); 
     47 
    4348    } 
    4449    function test_99_Layer_Markers_destroy (t) { 
  • sandbox/pagameba/transition-resize/tests/list-tests.html

    r5822 r5914  
    11<ul id="testlist"> 
     2    <li>test_Ajax.html</li> 
    23    <li>test_BaseTypes.html</li> 
    34    <li>BaseTypes/test_Bounds.html</li> 
     
    2526    <li>Format/test_GML.html</li> 
    2627    <li>Format/test_JSON.html</li> 
     28    <li>Format/test_OSM.html</li> 
    2729    <li>Format/test_KML.html</li> 
    2830    <li>Format/test_SLD.html</li> 
     
    7375    <li>test_Control.html</li> 
    7476    <li>Control/test_Attribution.html</li> 
     77    <li>Control/test_Button.html</li> 
    7578    <li>Control/test_DragFeature.html</li> 
    7679    <li>Control/test_DragPan.html</li> 
  • sandbox/pagameba/transition-resize/tests/test_Control.html

    r5070 r5914  
    2222        t.ok(map.controls[map.controls.length - 1] === control, "map.controls contains control"); 
    2323    } 
    24  
     24     
     25    function test_Control_title(t) {  
     26        t.plan( 1 );  
     27        var titleText = 'Title test';  
     28        control = new OpenLayers.Control({title:titleText});  
     29        t.eq( control.title, titleText, "control.title set correctly" );  
     30    } 
     31     
    2532    function test_Control_destroy(t) { 
    2633        t.plan(3); 
  • sandbox/pagameba/transition-resize/tests/test_Handler.html

    r4062 r5914  
    7272    function test_Handler_deactivate(t) { 
    7373        t.plan(52); 
    74         var map = new OpenLayers.Map('map'); 
     74        var map = new OpenLayers.Map('map', { controls: []}); 
     75        // No controls so that we don't get more thingies than we expect 
     76        // when we actually clean up after ourselves: r5891 caused this 
     77        // because we actually destroy things now on the navigation control.  
    7578        var control = new OpenLayers.Control(); 
    7679        map.addControl(control);