loosen the test for XML write by removing the <?xml ... ?> header before comparing the results (fixes test for Safari 3 and FF3)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@5473 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Paul Spencer
2007-12-17 17:05:38 +00:00
parent 5a11ac8ac6
commit 5b2f4a2335

View File

@@ -77,7 +77,9 @@
var doc = format.read(text);
var out = format.write(doc);
out = out.replace(/[\r\n]/g, '');
t.eq(text, out,
out = out.replace( /<\?.*\?>/, '')
var expected = text.replace(/<\?.*\?>/, '')
t.eq(expected, out,
"correctly writes an XML DOM doc");
}