From 3ab6d6e78930ff494be88a881a76b685bf43c503 Mon Sep 17 00:00:00 2001 From: euzuro Date: Sun, 12 Aug 2007 00:40:59 +0000 Subject: [PATCH] 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 --- tests/Format/test_XML.html | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/Format/test_XML.html b/tests/Format/test_XML.html index 5365c3439f..f9acfa0326 100644 --- a/tests/Format/test_XML.html +++ b/tests/Format/test_XML.html @@ -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) {