summaryrefslogtreecommitdiff
path: root/platform/node/test/suite_implementation.js
diff options
context:
space:
mode:
authorAsheem Mamoowala <asheem.mamoowala@mapbox.com>2017-05-02 09:54:06 -0700
committerGitHub <noreply@github.com>2017-05-02 09:54:06 -0700
commit5c52401d5504ab4b84d1510042c6b97504c50933 (patch)
tree3bd2feb4e985f5402ec0fc112aab6717426d46aa /platform/node/test/suite_implementation.js
parent3f0c89d633a5056006557ad5f4b9e446807d00ee (diff)
downloadqtlocation-mapboxgl-5c52401d5504ab4b84d1510042c6b97504c50933.tar.gz
[core] Make Map.addImage tests pass (#8843)
Fix Node tests suite implementation to parse pixelRatio from style json Premultiply images in the node binding before sending to mbgl core
Diffstat (limited to 'platform/node/test/suite_implementation.js')
-rw-r--r--platform/node/test/suite_implementation.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/node/test/suite_implementation.js b/platform/node/test/suite_implementation.js
index a5e96f7265..8ac372b7c3 100644
--- a/platform/node/test/suite_implementation.js
+++ b/platform/node/test/suite_implementation.js
@@ -76,7 +76,7 @@ module.exports = function (style, options, callback) {
map.addImage(operation[1], img.data, {
height: img.height,
width: img.width,
- pixelRatio: 1
+ pixelRatio: operation[3] || 1
});
applyOperations(operations.slice(1), callback);