Merge branch 'master' into fuzz-pipe
This commit is contained in:
@@ -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);
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
8
test/fixtures/styles/0.style.json
vendored
8
test/fixtures/styles/0.style.json
vendored
@@ -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
|
||||
|
||||
8
test/fixtures/styles/1.style.json
vendored
8
test/fixtures/styles/1.style.json
vendored
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user