Unregister postrender listener in tests
This commit is contained in:
@@ -27,7 +27,7 @@ describe('ol.interaction.DragZoom', function() {
|
||||
resolution: 1
|
||||
})
|
||||
});
|
||||
map.on('postrender', function() {
|
||||
map.once('postrender', function() {
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -26,7 +26,7 @@ describe('ol.interaction.Draw', function() {
|
||||
resolution: 1
|
||||
})
|
||||
});
|
||||
map.on('postrender', function() {
|
||||
map.once('postrender', function() {
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -42,7 +42,7 @@ describe('ol.interaction.Modify', function() {
|
||||
})
|
||||
});
|
||||
|
||||
map.on('postrender', function() {
|
||||
map.once('postrender', function() {
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -57,7 +57,7 @@ describe('ol.interaction.Select', function() {
|
||||
})
|
||||
});
|
||||
|
||||
map.on('postrender', function() {
|
||||
map.once('postrender', function() {
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -37,7 +37,7 @@ describe('ol.interaction.Snap', function() {
|
||||
})
|
||||
});
|
||||
|
||||
map.on('postrender', function() {
|
||||
map.once('postrender', function() {
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -32,7 +32,7 @@ describe('ol.interaction.Translate', function() {
|
||||
resolution: 1
|
||||
})
|
||||
});
|
||||
map.on('postrender', function() {
|
||||
map.once('postrender', function() {
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user