24 lines
455 B
C++
24 lines
455 B
C++
#include "gtest/gtest.h"
|
|
|
|
#include <llmr/map/map.hpp>
|
|
|
|
#include "../common/headless_view.hpp"
|
|
|
|
#include <iostream>
|
|
#include <fstream>
|
|
|
|
using namespace llmr;
|
|
|
|
TEST(Style, Color) {
|
|
// Setup OpenGL
|
|
llmr::HeadlessView view;
|
|
llmr::Map map(view);
|
|
|
|
std::ifstream stylefile("./style-fuzzed.min.js");
|
|
ASSERT_FALSE(stylefile.good());
|
|
std::stringstream stylejson;
|
|
stylejson << stylefile.rdbuf();
|
|
|
|
map.setStyleJSON(stylejson.str());
|
|
}
|