no need to process the expected data twice.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5499 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -83,9 +83,6 @@
|
|||||||
"correctly writes an XML DOM doc");
|
"correctly writes an XML DOM doc");
|
||||||
|
|
||||||
var out = format.write(doc.firstChild);
|
var out = format.write(doc.firstChild);
|
||||||
out = out.replace(/[\r\n]/g, '');
|
|
||||||
out = out.replace( /<\?.*\?>/, '')
|
|
||||||
var expected = text.replace(/<\?.*\?>/, '')
|
|
||||||
t.eq(expected, out,
|
t.eq(expected, out,
|
||||||
"correctly writes an XML DOM node");
|
"correctly writes an XML DOM node");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user