summaryrefslogtreecommitdiff
path: root/platform/node
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-01-09 15:32:03 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-01-09 19:05:28 -0800
commit9f9e820540af4e7e988fe70b838a82842d44da93 (patch)
treef0f186a520eeae9163a9106c1e5ac5eda50580b3 /platform/node
parentf6f82d15abb534f618cec090c4592f87f0511523 (diff)
downloadqtlocation-mapboxgl-9f9e820540af4e7e988fe70b838a82842d44da93.tar.gz
[build] Use test-suite integration tests from mapbox-gl-js
Diffstat (limited to 'platform/node')
-rwxr-xr-xplatform/node/scripts/after_script.sh2
-rw-r--r--platform/node/test/query.test.js2
-rw-r--r--platform/node/test/render.test.js2
-rw-r--r--platform/node/test/suite_implementation.js2
4 files changed, 4 insertions, 4 deletions
diff --git a/platform/node/scripts/after_script.sh b/platform/node/scripts/after_script.sh
index 4228d13dfe..beb8d6966f 100755
--- a/platform/node/scripts/after_script.sh
+++ b/platform/node/scripts/after_script.sh
@@ -6,7 +6,7 @@ set -o pipefail
JOB=$1
if [ ! -z "${AWS_ACCESS_KEY_ID}" ] && [ ! -z "${AWS_SECRET_ACCESS_KEY}" ] ; then
- gzip --stdout node_modules/mapbox-gl-test-suite/render-tests/index.html | \
+ gzip --stdout mapbox-gl-js/test/integration/render-tests/index.html | \
aws s3 cp --acl public-read --content-encoding gzip --content-type text/html \
- s3://mapbox/mapbox-gl-native/render-tests/$JOB/index.html
diff --git a/platform/node/test/query.test.js b/platform/node/test/query.test.js
index 1309c03467..8125f1c7cd 100644
--- a/platform/node/test/query.test.js
+++ b/platform/node/test/query.test.js
@@ -1,6 +1,6 @@
'use strict';
-var suite = require('mapbox-gl-test-suite').query;
+var suite = require('../../../mapbox-gl-js/test/integration').query;
var suiteImplementation = require('./suite_implementation');
var tests;
diff --git a/platform/node/test/render.test.js b/platform/node/test/render.test.js
index 0527a19070..e2e13534c9 100644
--- a/platform/node/test/render.test.js
+++ b/platform/node/test/render.test.js
@@ -1,6 +1,6 @@
'use strict';
-var suite = require('mapbox-gl-test-suite').render;
+var suite = require('../../../mapbox-gl-js/test/integration').render;
var suiteImplementation = require('./suite_implementation');
var tests;
diff --git a/platform/node/test/suite_implementation.js b/platform/node/test/suite_implementation.js
index 55d7c64d2a..6648757a98 100644
--- a/platform/node/test/suite_implementation.js
+++ b/platform/node/test/suite_implementation.js
@@ -69,7 +69,7 @@ module.exports = function (style, options, callback) {
});
} else if (operation[0] === 'addImage') {
- var img = PNG.sync.read(fs.readFileSync(path.join(__dirname, '../../../node_modules', 'mapbox-gl-test-suite', operation[2])));
+ var img = PNG.sync.read(fs.readFileSync(path.join(__dirname, '../../../mapbox-gl-js/test/integration', operation[2])));
map.addImage(operation[1], img.data, {
height: img.height,