[#212,test/map][s]: addendum to previous commit (should have been in there!).

This commit is contained in:
Rufus Pollock
2012-08-15 11:56:39 +01:00
parent 02d152c5ad
commit ce84dfc26b

View File

@@ -30,6 +30,7 @@ test('basics', function () {
model: dataset model: dataset
}); });
$('.fixtures').append(view.el); $('.fixtures').append(view.el);
view.render();
//Fire query, otherwise the map won't be initialized //Fire query, otherwise the map won't be initialized
dataset.query(); dataset.query();
@@ -50,6 +51,7 @@ test('_setupGeometryField', function () {
var view = new recline.View.Map({ var view = new recline.View.Map({
model: dataset model: dataset
}); });
view.render();
var exp = { var exp = {
geomField: null, geomField: null,
lonField: 'lon', lonField: 'lon',
@@ -66,6 +68,7 @@ test('Lat/Lon geom fields', function () {
model: dataset model: dataset
}); });
$('.fixtures').append(view.el); $('.fixtures').append(view.el);
view.render();
// Not really needed but fire query to test that resetting works! // Not really needed but fire query to test that resetting works!
dataset.query(); dataset.query();
@@ -90,6 +93,7 @@ test('GeoJSON geom field', function () {
model: dataset model: dataset
}); });
$('.fixtures').append(view.el); $('.fixtures').append(view.el);
view.render();
//Fire query, otherwise the map won't be initialized //Fire query, otherwise the map won't be initialized
dataset.query(); dataset.query();
@@ -137,6 +141,7 @@ test('Popup', function () {
model: dataset model: dataset
}); });
$('.fixtures').append(view.el); $('.fixtures').append(view.el);
view.render();
//Fire query, otherwise the map won't be initialized //Fire query, otherwise the map won't be initialized
dataset.query(); dataset.query();