Add empty lines for better code readability

This commit is contained in:
Éric Lemoine
2015-03-30 13:07:50 +02:00
parent 1f0c21ac60
commit 2f417bbb28

View File

@@ -8,6 +8,7 @@ describe('ol.interaction.Select', function() {
beforeEach(function(done) { beforeEach(function(done) {
target = document.createElement('div'); target = document.createElement('div');
var style = target.style; var style = target.style;
style.position = 'absolute'; style.position = 'absolute';
style.left = '-1000px'; style.left = '-1000px';
@@ -15,6 +16,7 @@ describe('ol.interaction.Select', function() {
style.width = width + 'px'; style.width = width + 'px';
style.height = height + 'px'; style.height = height + 'px';
document.body.appendChild(target); document.body.appendChild(target);
var geometry = new ol.geom.Polygon([[[0, 0], [0, 40], [40, 40], [40, 0]]]); var geometry = new ol.geom.Polygon([[[0, 0], [0, 40], [40, 40], [40, 0]]]);
var geometry2 = new ol.geom.Polygon([[[0, 0], [0, 40], [40, 40], [40, 0]]]); var geometry2 = new ol.geom.Polygon([[[0, 0], [0, 40], [40, 40], [40, 0]]]);
var feature = new ol.Feature({ var feature = new ol.Feature({
@@ -23,10 +25,12 @@ describe('ol.interaction.Select', function() {
var feature2 = new ol.Feature({ var feature2 = new ol.Feature({
geometry: geometry2 geometry: geometry2
}); });
source = new ol.source.Vector({ source = new ol.source.Vector({
features: [feature, feature2] features: [feature, feature2]
}); });
var layer = new ol.layer.Vector({source: source}); var layer = new ol.layer.Vector({source: source});
map = new ol.Map({ map = new ol.Map({
target: target, target: target,
layers: [layer], layers: [layer],
@@ -36,6 +40,7 @@ describe('ol.interaction.Select', function() {
resolution: 1 resolution: 1
}) })
}); });
map.on('postrender', function() { map.on('postrender', function() {
done(); done();
}); });