Skip to content

Commit

Permalink
move shared test data to common file
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaefer committed Sep 23, 2019
1 parent f1f31ce commit 23d3dda
Show file tree
Hide file tree
Showing 12 changed files with 96 additions and 440 deletions.
85 changes: 85 additions & 0 deletions test/integration/geojson/anchors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"properties": {
"anchor": "center"
},
"geometry": {
"type": "Point",
"coordinates": [ 0, 0 ]
}
}, {
"type": "Feature",
"properties": {
"anchor": "left"
},
"geometry": {
"type": "Point",
"coordinates": [ 30, 0 ]
}
}, {
"type": "Feature",
"properties": {
"anchor": "top-left"
},
"geometry": {
"type": "Point",
"coordinates": [ 20, -15 ]
}
}, {
"type": "Feature",
"properties": {
"anchor": "top"
},
"geometry": {
"type": "Point",
"coordinates": [ 0, -25 ]
}
}, {
"type": "Feature",
"properties": {
"anchor": "top-right"
},
"geometry": {
"type": "Point",
"coordinates": [ -20, -15 ]
}
}, {
"type": "Feature",
"properties": {
"anchor": "right"
},
"geometry": {
"type": "Point",
"coordinates": [ -30, 0 ]
}
}, {
"type": "Feature",
"properties": {
"anchor": "bottom-left"
},
"geometry": {
"type": "Point",
"coordinates": [ 20, 15 ]
}
}, {
"type": "Feature",
"properties": {
"anchor": "bottom"
},
"geometry": {
"type": "Point",
"coordinates": [ 0, 25 ]
}
}, {
"type": "Feature",
"properties": {
"anchor": "bottom-right"
},
"geometry": {
"type": "Point",
"coordinates": [ -20, 15 ]
}
}]
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,46 +10,7 @@
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"properties": { "anchor": "center" },
"geometry": { "type": "Point", "coordinates": [ 0, 0 ] }
}, {
"type": "Feature",
"properties": { "anchor": "left" },
"geometry": { "type": "Point", "coordinates": [ 30, 0 ] }
}, {
"type": "Feature",
"properties": { "anchor": "top-left" },
"geometry": { "type": "Point", "coordinates": [ 20, -15 ] }
}, {
"type": "Feature",
"properties": { "anchor": "top" },
"geometry": { "type": "Point", "coordinates": [ 0, -25 ] }
}, {
"type": "Feature",
"properties": { "anchor": "top-right" },
"geometry": { "type": "Point", "coordinates": [ -20, -15 ] }
}, {
"type": "Feature",
"properties": { "anchor": "right" },
"geometry": { "type": "Point", "coordinates": [ -30, 0 ] }
}, {
"type": "Feature",
"properties": { "anchor": "bottom-left" },
"geometry": { "type": "Point", "coordinates": [ 20, 15 ] }
}, {
"type": "Feature",
"properties": { "anchor": "bottom" },
"geometry": { "type": "Point", "coordinates": [ 0, 25 ] }
}, {
"type": "Feature",
"properties": { "anchor": "bottom-right" },
"geometry": { "type": "Point", "coordinates": [ -20, 15 ] }
}]
}
"data": "local://geojson/anchors.json"
}
},
"sprite": "local://sprites/icon-text-fit-1x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,46 +9,7 @@
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"properties": { "anchor": "center" },
"geometry": { "type": "Point", "coordinates": [ 0, 0 ] }
}, {
"type": "Feature",
"properties": { "anchor": "left" },
"geometry": { "type": "Point", "coordinates": [ 30, 0 ] }
}, {
"type": "Feature",
"properties": { "anchor": "top-left" },
"geometry": { "type": "Point", "coordinates": [ 20, -15 ] }
}, {
"type": "Feature",
"properties": { "anchor": "top" },
"geometry": { "type": "Point", "coordinates": [ 0, -25 ] }
}, {
"type": "Feature",
"properties": { "anchor": "top-right" },
"geometry": { "type": "Point", "coordinates": [ -20, -15 ] }
}, {
"type": "Feature",
"properties": { "anchor": "right" },
"geometry": { "type": "Point", "coordinates": [ -30, 0 ] }
}, {
"type": "Feature",
"properties": { "anchor": "bottom-left" },
"geometry": { "type": "Point", "coordinates": [ 20, 15 ] }
}, {
"type": "Feature",
"properties": { "anchor": "bottom" },
"geometry": { "type": "Point", "coordinates": [ 0, 25 ] }
}, {
"type": "Feature",
"properties": { "anchor": "bottom-right" },
"geometry": { "type": "Point", "coordinates": [ -20, 15 ] }
}]
}
"data": "local://geojson/anchors.json"
}
},
"sprite": "local://sprites/icon-text-fit-2x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,46 +11,7 @@
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"properties": { "anchor": "center" },
"geometry": { "type": "Point", "coordinates": [ 0, 0 ] }
}, {
"type": "Feature",
"properties": { "anchor": "left" },
"geometry": { "type": "Point", "coordinates": [ 30, 0 ] }
}, {
"type": "Feature",
"properties": { "anchor": "top-left" },
"geometry": { "type": "Point", "coordinates": [ 20, -15 ] }
}, {
"type": "Feature",
"properties": { "anchor": "top" },
"geometry": { "type": "Point", "coordinates": [ 0, -25 ] }
}, {
"type": "Feature",
"properties": { "anchor": "top-right" },
"geometry": { "type": "Point", "coordinates": [ -20, -15 ] }
}, {
"type": "Feature",
"properties": { "anchor": "right" },
"geometry": { "type": "Point", "coordinates": [ -30, 0 ] }
}, {
"type": "Feature",
"properties": { "anchor": "bottom-left" },
"geometry": { "type": "Point", "coordinates": [ 20, 15 ] }
}, {
"type": "Feature",
"properties": { "anchor": "bottom" },
"geometry": { "type": "Point", "coordinates": [ 0, 25 ] }
}, {
"type": "Feature",
"properties": { "anchor": "bottom-right" },
"geometry": { "type": "Point", "coordinates": [ -20, 15 ] }
}]
}
"data": "local://geojson/anchors.json"
}
},
"sprite": "local://sprites/icon-text-fit",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,46 +9,7 @@
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"properties": { "anchor": "center" },
"geometry": { "type": "Point", "coordinates": [ 0, 0 ] }
}, {
"type": "Feature",
"properties": { "anchor": "left" },
"geometry": { "type": "Point", "coordinates": [ 30, 0 ] }
}, {
"type": "Feature",
"properties": { "anchor": "top-left" },
"geometry": { "type": "Point", "coordinates": [ 20, -15 ] }
}, {
"type": "Feature",
"properties": { "anchor": "top" },
"geometry": { "type": "Point", "coordinates": [ 0, -25 ] }
}, {
"type": "Feature",
"properties": { "anchor": "top-right" },
"geometry": { "type": "Point", "coordinates": [ -20, -15 ] }
}, {
"type": "Feature",
"properties": { "anchor": "right" },
"geometry": { "type": "Point", "coordinates": [ -30, 0 ] }
}, {
"type": "Feature",
"properties": { "anchor": "bottom-left" },
"geometry": { "type": "Point", "coordinates": [ 20, 15 ] }
}, {
"type": "Feature",
"properties": { "anchor": "bottom" },
"geometry": { "type": "Point", "coordinates": [ 0, 25 ] }
}, {
"type": "Feature",
"properties": { "anchor": "bottom-right" },
"geometry": { "type": "Point", "coordinates": [ -20, 15 ] }
}]
}
"data": "local://geojson/anchors.json"
}
},
"sprite": "local://sprites/icon-text-fit",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,46 +9,7 @@
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"properties": { "anchor": "center" },
"geometry": { "type": "Point", "coordinates": [ 0, 0 ] }
}, {
"type": "Feature",
"properties": { "anchor": "left" },
"geometry": { "type": "Point", "coordinates": [ 30, 0 ] }
}, {
"type": "Feature",
"properties": { "anchor": "top-left" },
"geometry": { "type": "Point", "coordinates": [ 20, -15 ] }
}, {
"type": "Feature",
"properties": { "anchor": "top" },
"geometry": { "type": "Point", "coordinates": [ 0, -25 ] }
}, {
"type": "Feature",
"properties": { "anchor": "top-right" },
"geometry": { "type": "Point", "coordinates": [ -20, -15 ] }
}, {
"type": "Feature",
"properties": { "anchor": "right" },
"geometry": { "type": "Point", "coordinates": [ -30, 0 ] }
}, {
"type": "Feature",
"properties": { "anchor": "bottom-left" },
"geometry": { "type": "Point", "coordinates": [ 20, 15 ] }
}, {
"type": "Feature",
"properties": { "anchor": "bottom" },
"geometry": { "type": "Point", "coordinates": [ 0, 25 ] }
}, {
"type": "Feature",
"properties": { "anchor": "bottom-right" },
"geometry": { "type": "Point", "coordinates": [ -20, 15 ] }
}]
}
"data": "local://geojson/anchors.json"
}
},
"sprite": "local://sprites/icon-text-fit",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,46 +9,7 @@
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"properties": { "anchor": "center" },
"geometry": { "type": "Point", "coordinates": [ 0, 0 ] }
}, {
"type": "Feature",
"properties": { "anchor": "left" },
"geometry": { "type": "Point", "coordinates": [ 30, 0 ] }
}, {
"type": "Feature",
"properties": { "anchor": "top-left" },
"geometry": { "type": "Point", "coordinates": [ 20, -15 ] }
}, {
"type": "Feature",
"properties": { "anchor": "top" },
"geometry": { "type": "Point", "coordinates": [ 0, -25 ] }
}, {
"type": "Feature",
"properties": { "anchor": "top-right" },
"geometry": { "type": "Point", "coordinates": [ -20, -15 ] }
}, {
"type": "Feature",
"properties": { "anchor": "right" },
"geometry": { "type": "Point", "coordinates": [ -30, 0 ] }
}, {
"type": "Feature",
"properties": { "anchor": "bottom-left" },
"geometry": { "type": "Point", "coordinates": [ 20, 15 ] }
}, {
"type": "Feature",
"properties": { "anchor": "bottom" },
"geometry": { "type": "Point", "coordinates": [ 0, 25 ] }
}, {
"type": "Feature",
"properties": { "anchor": "bottom-right" },
"geometry": { "type": "Point", "coordinates": [ -20, 15 ] }
}]
}
"data": "local://geojson/anchors.json"
}
},
"sprite": "local://sprites/icon-text-fit",
Expand Down
Loading

0 comments on commit 23d3dda

Please sign in to comment.