making it so Strategy.BBOX receives options from layer.refresh(options). Thanks vmische for the tests. r=bartvde (closes #2171)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11719 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -87,7 +87,7 @@
|
||||
|
||||
function test_events(t) {
|
||||
|
||||
t.plan(2);
|
||||
t.plan(3);
|
||||
var log = {
|
||||
loadstart: 0,
|
||||
loadend: 0
|
||||
@@ -117,6 +117,14 @@
|
||||
t.eq(log.loadstart, 1, "loadstart triggered");
|
||||
t.eq(log.loadend, 1, "loadend triggered");
|
||||
|
||||
log = {};
|
||||
layer.protocol.read = function(obj) {
|
||||
log.obj = obj;
|
||||
}
|
||||
layer.refresh({force: true, whee: 'chicken'});
|
||||
|
||||
t.eq(log.obj && log.obj.whee, "chicken", "properties passed to read on refresh correctly.");
|
||||
|
||||
map.destroy();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user