run fuzzed stylesheet test with malformed color strings
This commit is contained in:
@@ -15,12 +15,9 @@ TEST(Style, Color) {
|
||||
llmr::Map map(view);
|
||||
|
||||
std::ifstream stylefile("./style-fuzzed.min.js");
|
||||
ASSERT_TRUE(stylefile.good());
|
||||
ASSERT_FALSE(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);
|
||||
}
|
||||
|
||||
@@ -95,10 +95,13 @@
|
||||
"sources": [
|
||||
"./main.cpp",
|
||||
"./style.cpp",
|
||||
"../common/headless_view.hpp",
|
||||
"../common/headless_view.cpp",
|
||||
],
|
||||
"dependencies": [
|
||||
"../deps/gtest/gtest.gyp:gtest",
|
||||
"../llmr.gyp:llmr-x86"
|
||||
"../llmr.gyp:llmr-x86",
|
||||
"link_gl",
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -183,6 +186,7 @@
|
||||
"tile",
|
||||
"functions",
|
||||
"headless",
|
||||
"style",
|
||||
],
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user