minor doc adjustments and a bit more test coverage
This commit is contained in:
@@ -4,11 +4,15 @@
|
||||
<script type="text/javascript">
|
||||
|
||||
function test_initialize(t) {
|
||||
t.plan(1);
|
||||
t.plan(3);
|
||||
|
||||
var protocol = new OpenLayers.Protocol.CSW({});
|
||||
var protocol = new OpenLayers.Protocol.CSW({formatOptions: {foo: "bar"},});
|
||||
t.ok(protocol instanceof OpenLayers.Protocol.CSW.v2_0_2,
|
||||
"initialize returns instance of default versioned protocol");
|
||||
var format = protocol.format;
|
||||
t.ok(format instanceof OpenLayers.Format.CSWGetRecords.v2_0_2, "Default format created");
|
||||
t.ok(format.foo, "bar", "formatOptions set correctly");
|
||||
protocol.destroy();
|
||||
}
|
||||
|
||||
function test_read(t) {
|
||||
|
||||
Reference in New Issue
Block a user