[test][xs]: remove dataset.query calls in map tests as no longer needed (since 02d152c5ad I think).
This commit is contained in:
@@ -32,9 +32,6 @@ test('basics', function () {
|
|||||||
$('.fixtures').append(view.el);
|
$('.fixtures').append(view.el);
|
||||||
view.render();
|
view.render();
|
||||||
|
|
||||||
//Fire query, otherwise the map won't be initialized
|
|
||||||
dataset.query();
|
|
||||||
|
|
||||||
assertPresent('.editor-field-type', view.elSidebar);
|
assertPresent('.editor-field-type', view.elSidebar);
|
||||||
|
|
||||||
// Check that the Leaflet map was set up
|
// Check that the Leaflet map was set up
|
||||||
@@ -95,9 +92,6 @@ test('GeoJSON geom field', function () {
|
|||||||
$('.fixtures').append(view.el);
|
$('.fixtures').append(view.el);
|
||||||
view.render();
|
view.render();
|
||||||
|
|
||||||
//Fire query, otherwise the map won't be initialized
|
|
||||||
dataset.query();
|
|
||||||
|
|
||||||
// Check that all features were created
|
// Check that all features were created
|
||||||
equal(_getFeaturesCount(view.features),3);
|
equal(_getFeaturesCount(view.features),3);
|
||||||
|
|
||||||
@@ -143,9 +137,6 @@ test('Popup', function () {
|
|||||||
$('.fixtures').append(view.el);
|
$('.fixtures').append(view.el);
|
||||||
view.render();
|
view.render();
|
||||||
|
|
||||||
//Fire query, otherwise the map won't be initialized
|
|
||||||
dataset.query();
|
|
||||||
|
|
||||||
var marker = view.el.find('.leaflet-marker-icon').first();
|
var marker = view.el.find('.leaflet-marker-icon').first();
|
||||||
|
|
||||||
assertPresent(marker);
|
assertPresent(marker);
|
||||||
|
|||||||
Reference in New Issue
Block a user