diff --git a/examples/filter.html b/examples/filter.html index 2309525504..661ea87882 100644 --- a/examples/filter.html +++ b/examples/filter.html @@ -8,7 +8,7 @@ height: 250px; } #out0, #out1 { - height: 250px; + height: 100px; width: 90%; overflow: auto; } @@ -17,6 +17,7 @@ diff --git a/tests/Format/Filter/v1_0_0.html b/tests/Format/Filter/v1_0_0.html index 3347129526..11a62074cc 100644 --- a/tests/Format/Filter/v1_0_0.html +++ b/tests/Format/Filter/v1_0_0.html @@ -53,6 +53,31 @@ } + function test_BBOX(t) { + t.plan(1); + var filter = new OpenLayers.Filter.Spatial({ + type: OpenLayers.Filter.Spatial.BBOX, + property: "the_geom", + value: new OpenLayers.Bounds(-180, -90, 180, 90), + projection: "EPSG:4326" + }); + + var out = + '' + + '' + + 'the_geom' + + '' + + '-90,-180 90,180' + + '' + + '' + + ''; + + var parser = new OpenLayers.Format.Filter.v1_0_0(); + var node = parser.write(filter); + + t.xml_eq(node, out, "bbox correctly written"); + } + diff --git a/tests/Format/Filter/v1_1_0.html b/tests/Format/Filter/v1_1_0.html new file mode 100644 index 0000000000..e37187709e --- /dev/null +++ b/tests/Format/Filter/v1_1_0.html @@ -0,0 +1,175 @@ + + + + + + + + diff --git a/tests/list-tests.html b/tests/list-tests.html index 0398a8f612..39d72c54da 100644 --- a/tests/list-tests.html +++ b/tests/list-tests.html @@ -53,6 +53,7 @@
  • Format/SLD/v1_0_0.html
  • Format/Filter.html
  • Format/Filter/v1_0_0.html
  • +
  • Format/Filter/v1_1_0.html
  • Format/WKT.html
  • Format/WMC.html
  • Format/WMC/v1_1_0.html