From 9e83c720d92a6fc6802f34eaf723a0eccd71e414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Junod?= Date: Mon, 4 Aug 2008 09:11:19 +0000 Subject: [PATCH] Test if OpenLayers.Protocol::destroy() nullify options property git-svn-id: http://svn.openlayers.org/trunk/openlayers@7687 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/Protocol.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Protocol.html b/tests/Protocol.html index 3ff909497f..dab990addf 100644 --- a/tests/Protocol.html +++ b/tests/Protocol.html @@ -14,13 +14,15 @@ } function test_destroy(t) { - t.plan(1); + t.plan(2); var protocol = new OpenLayers.Protocol({ + options: {foo: 'bar'}, format: 'foo' }); protocol.destroy(); t.eq(protocol.format, null, "destroy nullify protocol.format"); + t.eq(protocol.options, null, "destroy nullify protocol.options"); }