[tests] Test updating icon and pattern images
This commit is contained in:
@@ -70,7 +70,7 @@ module.exports = function (style, options, callback) {
|
||||
applyOperations(operations.slice(1), callback);
|
||||
});
|
||||
|
||||
} else if (operation[0] === 'addImage') {
|
||||
} else if (operation[0] === 'addImage' || operation[0] === 'updateImage') {
|
||||
var img = PNG.sync.read(fs.readFileSync(path.join(__dirname, '../../../mapbox-gl-js/test/integration', operation[2])));
|
||||
|
||||
map.addImage(operation[1], img.data, {
|
||||
|
||||
Reference in New Issue
Block a user