From 5b2f4a23357d87a774c7b0c7462184f18eb168f0 Mon Sep 17 00:00:00 2001 From: Paul Spencer Date: Mon, 17 Dec 2007 17:05:38 +0000 Subject: [PATCH] loosen the test for XML write by removing the 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 --- tests/Format/test_XML.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Format/test_XML.html b/tests/Format/test_XML.html index e22ffe6b81..aded57e4d6 100644 --- a/tests/Format/test_XML.html +++ b/tests/Format/test_XML.html @@ -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"); }