run fuzzed stylesheet test with malformed color strings

This commit is contained in:
Mike Morris
2014-07-07 18:12:33 -07:00
parent dc3c26294a
commit 5ae5d7cbc0
2 changed files with 6 additions and 5 deletions

View File

@@ -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);
}

View File

@@ -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",
],
}
]