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:
1 parent
5a11ac8ac6
commit
5b2f4a2335
1 file changed
+3
-1
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user