rearrange logic for xml format test. final touch on #894

git-svn-id: http://svn.openlayers.org/trunk/openlayers@3896 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2007-08-12 00:40:59 +00:00
parent b4da05da35
commit 3ab6d6e789
+2 -4
View File
@@ -18,7 +18,7 @@
'<' + '/ol:root>'; '<' + '/ol:root>';
function test_Format_XML_constructor(t) { function test_Format_XML_constructor(t) {
t.plan(window.ActiveXObject ? 5 : 4); t.plan(5);
var options = {'foo': 'bar'}; var options = {'foo': 'bar'};
var format = new OpenLayers.Format.XML(options); var format = new OpenLayers.Format.XML(options);
@@ -28,9 +28,7 @@
t.eq(typeof format.read, "function", "format has a read function"); t.eq(typeof format.read, "function", "format has a read function");
t.eq(typeof format.write, "function", "format has a write function"); t.eq(typeof format.write, "function", "format has a write function");
if(format.xmldom) { t.ok(!window.ActiveXObject || format.xmldom, "browsers with activeX must have xmldom");
t.ok(true, "format only has xmldom in browsers with ActiveX");
}
} }
function test_Format_XML_read(t) { function test_Format_XML_read(t) {