load stylesheet file for headless test
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
#include <iostream>
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
|
||||
|
||||
|
||||
#include <llmr/llmr.hpp>
|
||||
#include <llmr/util/image.hpp>
|
||||
#include <llmr/util/io.hpp>
|
||||
@@ -11,6 +7,11 @@
|
||||
|
||||
#include <uv.h>
|
||||
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
|
||||
|
||||
namespace llmr {
|
||||
namespace platform {
|
||||
|
||||
@@ -113,6 +114,13 @@ TEST(Headless, initialize) {
|
||||
|
||||
map.resize(width, height);
|
||||
|
||||
std::ifstream stylefile("./style.min.js");
|
||||
ASSERT_TRUE(stylefile.good());
|
||||
std::stringstream stylejson;
|
||||
stylejson << stylefile.rdbuf();
|
||||
|
||||
map.setStyleJSON(stylejson.str());
|
||||
|
||||
timer.report("map resize");
|
||||
|
||||
// Run the loop. It will terminate when we don't have any further listeners.
|
||||
|
||||
Reference in New Issue
Block a user