Merge branch 'master' into fuzz-pipe

This commit is contained in:
Mike Morris
2014-07-09 19:20:43 -07:00
4 changed files with 15 additions and 12 deletions

View File

@@ -23,6 +23,7 @@ var html =
'</tr>\n';
var exitCode = 0;
var failures = 0;
processFiles();
@@ -66,6 +67,7 @@ function writeResult(base, info, error, difference) {
if (exitCode < 1) {
exitCode = 1;
}
failures++;
}
html +=
@@ -93,6 +95,12 @@ function done() {
html += "</table>\n";
fs.writeFileSync(path.join(base_dir, 'index.html'), html);
console.warn('Results at: ' + path.join(base_dir, 'index.html'));
if (failures) {
console.warn('\x1B[1m\x1B[31m' + failures + ' ' + (failures == 1 ? 'image doesn\'t' : 'images don\'t') + ' match\x1B[39m\x1B[22m');
} else {
console.warn('\x1B[1m\x1B[32mAll images match\x1B[39m\x1B[22m');
}
process.exit(exitCode);
}

View File

@@ -917,6 +917,9 @@ void StyleParser::parseRender(JSVal value, std::shared_ptr<StyleLayer> &layer) {
}
parseRenderProperty(value, render.translate_anchor, "text-translate-anchor", parseTranslateAnchorType);
} break;
default:
// There are no render properties for these layer types.
break;
}
}

View File

@@ -11,9 +11,7 @@
"layers": [
{
"id": "background",
"render": {
"type": "background"
},
"type": "background",
"style": {
"background-color": "red"
}
@@ -22,9 +20,7 @@
"id": "water",
"source": "mapbox",
"source-layer": "water",
"render": {
"type": "fill"
},
"type": "fill",
"style": {
"fill-color": "blue",
"fill-antialias": false

View File

@@ -11,9 +11,7 @@
"layers": [
{
"id": "background",
"render": {
"type": "background"
},
"type": "background",
"style": {
"background-color": "red"
}
@@ -22,9 +20,7 @@
"id": "water",
"source": "mapbox",
"source-layer": "water",
"render": {
"type": "fill"
},
"type": "fill",
"style": {
"fill-color": "blue"
}