|
Revision 7651, 0.6 kB
(checked in by tschaub, 5 months ago)
|
Adding a filter format for version 1.0.0 filter encoding. The sld parser extends itself to use readers and writers from the filter parser. r=me (closes #1605)
|
| 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 format = new OpenLayers.Format.Filter(options); |
|---|
| 11 |
t.ok(format instanceof OpenLayers.Format.Filter, |
|---|
| 12 |
"new OpenLayers.Format.Filter returns object" ); |
|---|
| 13 |
t.eq(format.foo, "bar", "constructor sets options correctly"); |
|---|
| 14 |
t.eq(typeof format.read, "function", "format has a read function"); |
|---|
| 15 |
} |
|---|
| 16 |
|
|---|
| 17 |
</script> |
|---|
| 18 |
</head> |
|---|
| 19 |
<body> |
|---|
| 20 |
</body> |
|---|
| 21 |
</html> |
|---|