Skip to content

Commit

Permalink
Disable local Ideograph generation for render tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Asheem Mamoowala committed Mar 14, 2019
1 parent 9f833c6 commit e3f00b8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/suite_implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ module.exports = function(style, options, _callback) { // eslint-disable-line im
axonometric: options.axonometric || false,
skew: options.skew || [0, 0],
fadeDuration: options.fadeDuration || 0,
localIdeographFontFamily: options.localIdeographFontFamily || false,
crossSourceCollisions: typeof options.crossSourceCollisions === "undefined" ? true : options.crossSourceCollisions
});

Expand Down Expand Up @@ -156,7 +157,11 @@ module.exports = function(style, options, _callback) { // eslint-disable-line im
map.addLayer(new customLayerImplementations[operation[1]](), operation[2]);
map._render();
applyOperations(map, operations.slice(1), callback);

} else if (operation[0] === 'setStyle') {
// Disable local ideograph generation (enabled by default) for
// consistent local ideograph rendering using fixtures in all runs of the test suite.
map.setStyle(operation[1], { localIdeographFontFamily: false });
applyOperations(map, operations.slice(1), callback);
} else {
map[operation[0]](...operation.slice(1));
applyOperations(map, operations.slice(1), callback);
Expand Down

0 comments on commit e3f00b8

Please sign in to comment.