diff --git a/tests/Format/Filter/v1.html b/tests/Format/Filter/v1.html
index a596521213..f2bdbb7286 100644
--- a/tests/Format/Filter/v1.html
+++ b/tests/Format/Filter/v1.html
@@ -5,9 +5,14 @@
function test_PropertyIsBetween(t) {
- t.plan(3);
+ t.plan(6);
- var test_xml =
+ var test_wml, parser, xml;
+
+ parser = new OpenLayers.Format.Filter.v1();
+ xml = new OpenLayers.Format.XML();
+
+ test_xml =
'' +
'' +
'number' +
@@ -20,16 +25,30 @@
'' +
'';
- var parser = new OpenLayers.Format.Filter.v1();
- var xml = new OpenLayers.Format.XML();
var filter = parser.read(xml.read(test_xml).documentElement);
-
t.eq(filter.type, OpenLayers.Filter.Comparison.BETWEEN,
- "read correct type");
+ "[0] read correct type");
t.eq(filter.lowerBoundary, 0,
- "record correct lower boundary value");
+ "[0] record correct lower boundary value");
t.eq(filter.upperBoundary, 100,
- "record correct upper boundary value");
+ "[0] record correct upper boundary value");
+
+ test_xml =
+ '' +
+ '' +
+ 'number' +
+ '0' +
+ '100' +
+ '' +
+ '';
+
+ var filter = parser.read(xml.read(test_xml).documentElement);
+ t.eq(filter.type, OpenLayers.Filter.Comparison.BETWEEN,
+ "[1] read correct type");
+ t.eq(filter.lowerBoundary, 0,
+ "[1] record correct lower boundary value");
+ t.eq(filter.upperBoundary, 100,
+ "[1] record correct upper boundary value");
}