revert changes to layer mergeNewParams tests (ff045172)
This commit is contained in:
@@ -92,14 +92,13 @@
|
||||
t.eq( log[0].scope, scope, "mergeNewParams() executes changelayer listener with expected scope");
|
||||
|
||||
newParams.chickpeas = 151;
|
||||
t.eq( layer.params.chickpeas, "image/png", "mergeNewParams() makes clean copy of hash");
|
||||
|
||||
var redraw = OpenLayers.Layer.prototype.redraw;
|
||||
OpenLayers.Layer.prototype.redraw = function() {
|
||||
t.eq(this.resolution, null, 'mergeNewParams sets layer resolution to null, causing redraw to call moveTo with zoomChanged set to true');
|
||||
};
|
||||
t.eq( layer.params.chickpeas, "image/png", "mergeNewParams() makes clean copy of hash");
|
||||
|
||||
layer.redraw = function() {
|
||||
t.ok(true, "layer.mergeNewParams calls layer.redraw");
|
||||
}
|
||||
layer.mergeNewParams();
|
||||
OpenLayers.Layer.prototype.redraw = redraw;
|
||||
}
|
||||
|
||||
function test_Layer_HTTPRequest_getFullRequestString (t) {
|
||||
|
||||
Reference in New Issue
Block a user