HTTPRequest.mergeNewParams should now do redraw(true)

This commit is contained in:
Éric Lemoine committed 2011-12-22 14:21:07 +01:00
1 parent 289d9d371d
commit ff04517232
7 files changed
+29 -12

No files matched your search

+4 -1
View File
@@ -132,7 +132,8 @@
map.addLayer(layer);
map.zoomToMaxExtent();
layer.redraw = function() {
var redraw = OpenLayers.Layer.prototype.redraw;
OpenLayers.Layer.prototype.redraw = function() {
t.ok(true, "layer is redrawn after new params merged");
}
@@ -144,6 +145,8 @@
newParams.chickpeas = 151;
t.eq( layer.params.chickpeas, "image/png", "mergeNewParams() makes clean copy of hashtable");
OpenLayers.Layer.prototype.redraw = redraw;
map.destroy();
}