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:
@@ -77,7 +77,9 @@
|
|||||||
var doc = format.read(text);
|
var doc = format.read(text);
|
||||||
var out = format.write(doc);
|
var out = format.write(doc);
|
||||||
out = out.replace(/[\r\n]/g, '');
|
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");
|
"correctly writes an XML DOM doc");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user