Thanks! I think you mean unit tests... Glurp, I never played around with testanotherway. Although I'm interested in doing it when I get to have a little time, here is the test code I ran in firebug, using the openlayers/examples/vector-features.html example:
---8<------------------------------------------------------------------- var kml = new OpenLayers.Format.KML(); var kmlOut = kml.write(map.layers[1].features); kmlOut; map.layers[1].eraseFeatures(map.layers[1].features); map.layers[1].features = []; var features = kml.read(kmlOut); features; map.layers[1].addFeatures(features); ---8<------------------------------------------------------------------- Cheers, Damien Christopher Schmidt wrote: > On Tue, Sep 04, 2007 at 04:28:52PM +0200, Damien Corpataux wrote: > >> Hi Tim, >> >> I just posted a patch on ticket #927. The patch suits the requirements: >> - KML extends XML >> - XML class methods are used for XML manipulation >> - tested on FF2/Linux and IE7 >> - KML.write() returns a string (using XML.write()) >> - GGE import of OL exported KML is working, and vice-versa >> >> > > Looks pretty good. Any chance you could write some tests for KML.write() > -- just a few simple ones, to confirm it works? > > Regards, > -- Camptocamp SA Damien Corpataux PSE A CH-1015 Lausanne +41 21 619 10 22 (Direct) +41 21 619 10 10 (Centrale) +41 21 619 10 00 (Fax) P Please consider the environment Do you really need to print this email?
_______________________________________________ Dev mailing list [email protected] http://openlayers.org/mailman/listinfo/dev
