OpenLayers OpenLayers

Changeset 3324

Show
Ignore:
Timestamp:
06/12/07 15:05:42 (1 year ago)
Author:
euzuro
Message:

fix format georss patch to not cause tests to break in IE. see (unnecessary) ticket #756

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/tests/Format/test_GeoRSS.html

    r3170 r3324  
    1919    function test_Format_GeoRSS_serializeline(t) {  
    2020        t.plan(1); 
    21         var parser = new OpenLayers.Format.GeoRSS(); 
    22         var point = new OpenLayers.Geometry.Point(-111.04, 45.68);   
    23         var point2 = new OpenLayers.Geometry.Point(-112.04, 45.68);  
    24         var l = new OpenLayers.Geometry.LineString([point, point2]); 
    25         var f = new OpenLayers.Feature.Vector(l); 
    26         var data = parser.write([f]); 
    27         t.eq(data.firstChild.childNodes[2].firstChild.nodeValue, '45.68 -111.04 45.68 -112.04 ', 'GeoRSS serializes a line correctly'); 
     21        if (OpenLayers.Util.getBrowserName() == "msie") { 
     22            //serialization currently not supported in IE 
     23            t.ok(true, "GeoRSS serialization not currently supported in IE"); 
     24        } else { 
     25            var parser = new OpenLayers.Format.GeoRSS(); 
     26            var point = new OpenLayers.Geometry.Point(-111.04, 45.68);   
     27            var point2 = new OpenLayers.Geometry.Point(-112.04, 45.68);  
     28            var l = new OpenLayers.Geometry.LineString([point, point2]); 
     29            var f = new OpenLayers.Feature.Vector(l); 
     30            var data = parser.write([f]); 
     31            t.eq(data.firstChild.childNodes[2].firstChild.nodeValue, '45.68 -111.04 45.68 -112.04 ', 'GeoRSS serializes a line correctly'); 
     32        } 
    2833    } 
    2934    // -->