OpenLayers OpenLayers

Changeset 6717

Show
Ignore:
Timestamp:
03/31/08 00:04:24 (9 months ago)
Author:
euzuro
Message:

remove popup size tests from georss. browser issues with treatment of DOMElement widths prevents these from being useful

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/euzuro/pop/tests/Layer/test_GeoRSS.html

    r6715 r6717  
    9898    } 
    9999    function test_Layer_GeoRSS_popups (t) { 
    100         t.plan( 6 );     
     100        t.plan( 4 );     
    101101        layer = new OpenLayers.Layer.GeoRSS('Test Layer', georss_txt); 
    102102        var map = new OpenLayers.Map('map'); 
     
    113113          layer.markers[0].events.triggerEvent('click', event); 
    114114          t.eq(map.popups.length, 1, "Popup opened correctly"); 
    115           t.eq(map.popups[0].size.w, 250, "Popup sized correctly x"); 
    116115          layer.markers[1].events.triggerEvent('click', event); 
    117116          t.eq(map.popups.length, 1, "1st popup gone, 2nd Popup opened correctly"); 
    118           t.eq(map.popups[0].size.w, 250, "Popup sized correctly x"); 
    119117        }); 
    120118         
     
    122120    function test_Layer_GeoRSS_resizedPopups(t) { 
    123121        layer = new OpenLayers.Layer.GeoRSS('Test Layer', georss_txt, {'popupSize': new OpenLayers.Size(200,100)}); 
    124         t.plan( 6 );     
     122        t.plan( 4 );     
    125123        var map = new OpenLayers.Map('map'); 
    126124        var baseLayer = new OpenLayers.Layer.WMS("Test Layer",  
     
    136134          layer.markers[0].events.triggerEvent('click', event); 
    137135          t.eq(map.popups.length, 1, "Popup opened correctly"); 
    138           t.eq(map.popups[0].size.w, 200, "Popup sized correctly x"); 
    139136          map.popups[0].size.w=300; 
    140137          layer.markers[1].events.triggerEvent('click', event); 
    141138          t.eq(map.popups.length, 1, "1st popup gone, 2nd Popup opened correctly"); 
    142           t.eq(map.popups[0].size.w, 200, "Popup sized correctly x"); 
    143139        }); 
    144140    }