Add 'loadstart' and 'loadend' events to some of our exciting layers like WFS, GML, GeoRSS, and Text. tests to back it up. (Closes #808)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@4252 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -118,6 +118,19 @@
|
||||
t.eq(map.popups.length, 0, "no popup on second marker");
|
||||
});
|
||||
}
|
||||
function test_Layer_Text_loadend_Event(t) {
|
||||
t.plan(2);
|
||||
layer = new OpenLayers.Layer.Text('Test Layer', {location:datafile});
|
||||
t.delay_call(2, function() {
|
||||
layer.events.register('loadend', layer, function() {
|
||||
t.ok(true, "Loadend event fired");
|
||||
});
|
||||
layer.parseData({
|
||||
'responseText':''
|
||||
});
|
||||
t.ok(true, "Parsing data didn't fail");
|
||||
});
|
||||
}
|
||||
|
||||
function test_99_Layer_Text_destroy (t) {
|
||||
t.plan( 1 );
|
||||
|
||||
Reference in New Issue
Block a user