HTTPRequest.mergeNewParams should now do redraw(true)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user