[core] Convert MapContext to Map::Impl; eliminate indirection
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include <mbgl/test/util.hpp>
|
||||
#include <mbgl/test/stub_file_source.hpp>
|
||||
|
||||
#include <mbgl/map/map.hpp>
|
||||
#include <mbgl/platform/default/headless_view.hpp>
|
||||
@@ -44,3 +45,15 @@ TEST(Map, Offline) {
|
||||
|
||||
NetworkStatus::Set(NetworkStatus::Status::Online);
|
||||
}
|
||||
|
||||
TEST(Map, DoubleStyleLoad) {
|
||||
util::RunLoop runLoop;
|
||||
|
||||
std::shared_ptr<HeadlessDisplay> display = std::make_shared<HeadlessDisplay>();
|
||||
HeadlessView view(display, 1, 512, 512);
|
||||
StubFileSource fileSource;
|
||||
|
||||
Map map(view, fileSource);
|
||||
map.setStyleJSON("", "");
|
||||
map.setStyleJSON("", "");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user