Updated IS_NULL filter to check for strict null.

The IS_NULL filter evaluates to true only when the
property is null. Updated tests to reflect this
change.
This commit is contained in:
Matt Walker
2012-10-16 08:11:59 +01:00
parent ea5a510d45
commit a65a231da3
2 changed files with 4 additions and 4 deletions

View File

@@ -176,8 +176,8 @@
type: OpenLayers.Filter.Comparison.IS_NULL,
property: "prop"
}),
context: {prop: undefined},
expect: true
context: {},
expect: false
}, {
filter: new OpenLayers.Filter.Comparison({
type: OpenLayers.Filter.Comparison.IS_NULL,
@@ -315,7 +315,7 @@
property: "prop"
}),
context: new OpenLayers.Feature.Vector(null, {}),
expect: true
expect: false
}, {
filter: new OpenLayers.Filter.Comparison({
type: OpenLayers.Filter.Comparison.IS_NULL,