Files
openlayers/tests/Format/test_KML.html
crschmidt a339074539 Add test_KML stub (does nothing useful.)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4188 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2007-09-04 15:28:14 +00:00

42 lines
1.1 KiB
HTML

<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript">
function test_Format_KML_constructor(t) {
t.plan(4);
var options = {'foo': 'bar'};
var format = new OpenLayers.Format.KML(options);
t.ok(format instanceof OpenLayers.Format.KML,
"new OpenLayers.Format.KML returns object" );
t.eq(format.foo, "bar", "constructor sets options correctly");
t.eq(typeof format.read, "function", "format has a read function");
t.eq(typeof format.write, "function", "format has a write function");
}
function test_Format_KML_read(t) {
t.plan(1);
t.ok(true, "Read tests not done yet.");
}
function test_Format_KML_write(t) {
t.plan(1);
t.ok(true, "Write tests not done yet.");
var format = new OpenLayers.Format.KML();
//var doc = format.read(text);
//var out = format.write(doc);
//out = out.replace(/[\r\n]/g, '');
//t.eq(text, out,
// "correctly writes an KML DOM doc");
}
</script>
</head>
<body>
</body>
</html>