feat: add real WeatherV2 Android composite validation
Some checks failed
validate-scripts / validate-scripts (push) Has been cancelled
Some checks failed
validate-scripts / validate-scripts (push) Has been cancelled
This commit is contained in:
@@ -12,6 +12,8 @@
|
||||
#include <mbgl/style/layers/line_layer_impl.hpp>
|
||||
#include <mbgl/style/layers/raster_layer.hpp>
|
||||
#include <mbgl/style/layers/raster_layer_impl.hpp>
|
||||
#include <mbgl/style/layers/raster_particle_layer_impl.hpp>
|
||||
#include <mbgl/style/layers/weather_color_layer_impl.hpp>
|
||||
#include <mbgl/style/source_impl.hpp>
|
||||
#include <mbgl/style/sources/custom_geometry_source.hpp>
|
||||
#include <mbgl/style/sources/geojson_source.hpp>
|
||||
@@ -175,6 +177,12 @@ TEST(Source, RasterArrayRenderItem) {
|
||||
EXPECT_FALSE(item->hasRenderPass(RenderPass::Translucent));
|
||||
}
|
||||
|
||||
TEST(Source, RasterArraySharesCanonicalSnapshotsWithWeatherColorLayer) {
|
||||
style::RasterArraySource source{"source", "fixture", "metadata", "field"};
|
||||
EXPECT_TRUE(source.supportsLayerType(style::RasterParticleLayer::Impl::staticTypeInfo()));
|
||||
EXPECT_TRUE(source.supportsLayerType(style::WeatherColorLayer::Impl::staticTypeInfo()));
|
||||
}
|
||||
|
||||
TEST(Source, RasterArraySnapshotsUseProcessWideGenerations) {
|
||||
SourceTest test;
|
||||
const auto eastMetadata = fixtureBytes("uniform-east", "metadata.json");
|
||||
|
||||
Reference in New Issue
Block a user