Use v7 styles / tests

This commit is contained in:
John Firebaugh
2015-01-22 11:07:08 -08:00
parent 8e23e3a3e8
commit 9495b686e7
5 changed files with 8 additions and 4 deletions

View File

@@ -83,7 +83,7 @@ int main(int argc, char *argv[]) {
// Load style
if (style.empty())
style = std::string("asset://") + std::string("styles/bright-v6.json");
style = std::string("asset://") + std::string("styles/bright-v7.json");
map.setStyleURL(style);

View File

@@ -102,7 +102,7 @@ int main() {
if (accessToken) fileSource.setAccessToken([accessToken cStringUsingEncoding:[NSString defaultCStringEncoding]]);
// Load style
map.setStyleURL("asset://styles/bright-v6.json");
map.setStyleURL("asset://styles/bright-v7.json");
int ret = view.run();

2
styles

Submodule styles updated: 225f78f428...e8f361870c

View File

@@ -161,6 +161,10 @@ TEST_P(HeadlessTest, render) {
};
const rapidjson::Value& value = it->value;
ASSERT_TRUE(value.IsObject());
if (value.HasMember("native") && !value["native"].GetBool())
continue;
if (value.HasMember("center")) ASSERT_TRUE(value["center"].IsArray());
const std::string actual_image = base_directory + "tests/" + base + "/" + name + "/actual.png";