blob: 5869bf78748252b1ab23986a1b4e7c53172628a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#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_TRUE(stylefile.good());
std::stringstream stylejson;
stylejson << stylefile.rdbuf();
map.setStyleJSON(stylejson.str());
// ASSERT_EQ(std::string(""), styles[0]->clip.mask);
// ASSERT_EQ(3, styles[0]->clip.length);
}
|