OpenLayers OpenLayers

Changeset 5477

Show
Ignore:
Timestamp:
12/17/07 21:33:01 (1 year ago)
Author:
crschmidt
Message:

revert previous commit. This is actually caused by a bug in Format.XML.
(See #1218)

Files:

Legend:

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

    r5475 r5477  
    5959        var features = format.read(kmlExpected); 
    6060        var kmlOut = format.write(features); 
    61         if (OpenLayers.Util.getBrowserName() == "safari") { 
    62             t.debug_print("Safari's XMLSerializer doesn't support XML namespaces.");  
    63             kmlExpected = kmlExpected.replace(/ xmlns[:a-z]*="[^"]*"/g, ''); 
    64         }     
    6561        t.eq(kmlOut, kmlExpected, "correctly writes an KML doc string"); 
    6662    } 
     
    8884        output = format.write(feature); 
    8985        expected = '<kml xmlns="http://earth.google.com/kml/2.0"><Folder><name>OpenLayers export</name><description>test output</description><Placemark><name>test name</name><description>No description available</description><MultiGeometry><Point><coordinates>0,1</coordinates></Point></MultiGeometry></Placemark></Folder></kml>'; 
    90         if (OpenLayers.Util.getBrowserName() == "safari") {  
    91             t.debug_print("Safari's XMLSerializer doesn't support XML namespaces.");  
    92             expected = expected.replace(/ xmlns[:a-z]*="[^"]*"/g, ''); 
    93         }     
    9486        t.eq(output, expected, "multipoint correctly written"); 
    9587         
     
    10496        output = format.write(feature); 
    10597        expected = '<kml xmlns="http://earth.google.com/kml/2.0"><Folder><name>OpenLayers export</name><description>test output</description><Placemark><name>test name</name><description>No description available</description><MultiGeometry><LineString><coordinates>1,0 0,1</coordinates></LineString></MultiGeometry></Placemark></Folder></kml>'; 
    106         if (OpenLayers.Util.getBrowserName() == "safari") { 
    107             t.debug_print("Safari's XMLSerializer doesn't support XML namespaces.");  
    108             expected = expected.replace(/ xmlns[:a-z]*="[^"]*"/g, ''); 
    109         }     
    11098        t.eq(output, expected, "multilinestring correctly written"); 
    11199 
     
    123111        output = format.write(feature); 
    124112        expected = '<kml xmlns="http://earth.google.com/kml/2.0"><Folder><name>OpenLayers export</name><description>test output</description><Placemark><name>test name</name><description>No description available</description><MultiGeometry><Polygon><outerBoundaryIs><LinearRing><coordinates>0,0 1,0 0,1 0,0</coordinates></LinearRing></outerBoundaryIs></Polygon></MultiGeometry></Placemark></Folder></kml>'; 
    125         if (OpenLayers.Util.getBrowserName() == "safari") { 
    126             t.debug_print("Safari's XMLSerializer doesn't support XML namespaces.");  
    127             expected = expected.replace(/ xmlns[:a-z]*="[^"]*"/g, ''); 
    128         }     
    129113        t.eq(output, expected, "multilinestring correctly written"); 
    130114