|
Revision 6818, 0.6 kB
(checked in by tschaub, 8 months ago)
|
With dramatic flourish, I'm modifying 21 files with 1033 insertions and 815 deletions between release candidates. This moves all rule subclasses to a more natural home as filter subclasses. Also adds tests for SLD write and corrects a handful of issues there. Apologies to all who lose sleep over this sort of thing. r=ahocevar,crschmidt (closes #1492)
|
| Line | |
|---|
| 1 |
<html> |
|---|
| 2 |
<head> |
|---|
| 3 |
<script src="../lib/OpenLayers.js"></script> |
|---|
| 4 |
<script type="text/javascript"> |
|---|
| 5 |
|
|---|
| 6 |
function test_initialize(t) { |
|---|
| 7 |
t.plan(3); |
|---|
| 8 |
|
|---|
| 9 |
var options = {'foo': 'bar'}; |
|---|
| 10 |
var filter = new OpenLayers.Filter(options); |
|---|
| 11 |
t.ok(filter instanceof OpenLayers.Filter, |
|---|
| 12 |
"new OpenLayers.Filter returns object" ); |
|---|
| 13 |
t.eq(filter.foo, "bar", "constructor sets options correctly"); |
|---|
| 14 |
t.eq(typeof filter.evaluate, "function", "filter has an evaluate function"); |
|---|
| 15 |
} |
|---|
| 16 |
|
|---|
| 17 |
</script> |
|---|
| 18 |
</head> |
|---|
| 19 |
<body> |
|---|
| 20 |
</body> |
|---|
| 21 |
</html> |
|---|