3 <script src="../lib/OpenLayers.js"></script>
4 <script type="text/javascript">
6 function test_initialize(t) {
9 var protocol = new OpenLayers.Protocol(options);
11 t.ok(protocol instanceof OpenLayers.Protocol,
12 "new OpenLayers.Protocol returns object" );
13 t.eq(protocol.options, options, "constructor sets this.options");
14 t.eq(protocol.autoDestroy, true, "constructor does not modify this.autoDestroy");
17 function test_destroy(t) {
19 var protocol = new OpenLayers.Protocol({
20 options: {foo: 'bar'},
25 t.eq(protocol.format, null, "destroy nullify protocol.format");
26 t.eq(protocol.options, null, "destroy nullify protocol.options");