From d8cafb1ad71f9abac04fb2fe0c08b289bd37f3ed Mon Sep 17 00:00:00 2001 From: euzuro Date: Fri, 12 Sep 2008 16:32:52 +0000 Subject: [PATCH] fix broken HTTP Protocol test. Need to re-assign overridden values. This was not breaking in FF because (for whatever reason) tests are executed in backwards order. When they are executed in forwards order (IE), we have a problem. No functional change. See #1652 git-svn-id: http://svn.openlayers.org/trunk/openlayers@8009 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/Protocol/HTTP.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/Protocol/HTTP.html b/tests/Protocol/HTTP.html index 72685969a8..3892754ae8 100644 --- a/tests/Protocol/HTTP.html +++ b/tests/Protocol/HTTP.html @@ -102,6 +102,8 @@ }; var resp = protocol.read(readOptions); + + OpenLayers.Request.GET = _get; } function test_read_bbox(t) { @@ -127,6 +129,8 @@ }; var resp = protocol.read({filter: filter}); + + OpenLayers.Request.GET = _get; } function test_parseFeatures(t) { @@ -242,6 +246,8 @@ }; var resp = protocol.create(features, createOptions); + + OpenLayers.Request.POST = _post; } function test_update(t) { @@ -309,8 +315,10 @@ }; var resp = protocol.update(feature, updateOptions); - + + OpenLayers.Request.PUT = _put; } + function test_handleResponse(t) { t.plan(6); @@ -429,6 +437,7 @@ var resp = protocol['delete'](feature, deleteOptions); + OpenLayers.Request.DELETE = _delete; } function test_handleDelete(t) {