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

View File

@@ -18,7 +18,7 @@
'<' + '/ol:root>';
function test_Format_XML_constructor(t) {
t.plan(window.ActiveXObject ? 5 : 4);
t.plan(5);
var options = {'foo': 'bar'};
var format = new OpenLayers.Format.XML(options);
@@ -27,10 +27,8 @@
t.eq(format.foo, "bar", "constructor sets options correctly");
t.eq(typeof format.read, "function", "format has a read function");
t.eq(typeof format.write, "function", "format has a write function");
if(format.xmldom) {
t.ok(true, "format only has xmldom in browsers with ActiveX");
}
t.ok(!window.ActiveXObject || format.xmldom, "browsers with activeX must have xmldom");
}
function test_Format_XML_read(t) {