<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks!<br>
<br>
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:<br>
<br>
---8&lt;-------------------------------------------------------------------<br>
var kml = new OpenLayers.Format.KML();<br>
var kmlOut = kml.write(map.layers[1].features);<br>
<br>
kmlOut;<br>
<br>
map.layers[1].eraseFeatures(map.layers[1].features);<br>
map.layers[1].features = [];<br>
<br>
var features = kml.read(kmlOut);<br>
<br>
features;<br>
<br>
map.layers[1].addFeatures(features);<br>
---8&lt;-------------------------------------------------------------------<br>
<br>
Cheers,<br>
Damien<br>
<br>
Christopher Schmidt wrote:
<blockquote cite="mid20070904144047.GA30803@metacarta.com" type="cite">
  <pre wrap="">On Tue, Sep 04, 2007 at 04:28:52PM +0200, Damien Corpataux wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">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

    </pre>
  </blockquote>
  <pre wrap=""><!---->
Looks pretty good. Any chance you could write some tests for KML.write()
-- just a few simple ones, to confirm it works?

Regards,
  </pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<style>
<!--
.signature {
  font-family:verdana,helvetica,sans-serif;
  font-size:0.8em;
  line-height: 1.25em;
  color: #9999BB;
  width: 27em;
}

.signature div {
  padding: 0.22em;
  margin-bottom: 0.5em;
  margin-top: 0.5em;
  border-bottom: 1px dotted lightgray;
  background-color: #FCFCFF;
}

.signature .attention {
  background-color: #FFFAFA;
  color: #FFBBBB;
  font-size: 0.8em;
  font-weight: bold;
}

.header {
}
-->
</style>
<div class="signature">
<div> <span style="font-weight: bold;">Camptocamp SA</span><br>
Damien Corpataux<br>
PSE A<br>
CH-1015 Lausanne<br>
</div>
<div> +41 21 619 10 22 <span class="header">(Direct)</span><br>
+41 21 619 10 10 <span class="header">(Centrale)</span><br>
+41 21 619 10 00 <span class="header">(Fax)</span><br>
</div>
<div style="color: rgb(102, 204, 102);"> <span
 style="position: relative; top: -3px; font-family: Webdings; font-size: 24pt;">P</span>
<span style="">Please consider the environment <br>
Do you really need to print this email?</span>
</div>
</div>
</div>
</body>
</html>