Adapting scripts and project files to the new directory structure

This commit is contained in:
Petr Pokorny
2020-12-16 17:50:20 +01:00
parent d7c358771e
commit 2e4ac4e397
8 changed files with 103 additions and 100 deletions

View File

@@ -3,7 +3,7 @@
const fs = require('fs');
const ejs = require('ejs');
const spec = require('../vendor/mapbox-gl-native/scripts/style-spec');
const spec = require('../../mapbox-gl-native/scripts/style-spec');
const _ = require('lodash');
// FIXME: https://github.com/mapbox/mapbox-gl-native/issues/15008
@@ -11,7 +11,7 @@ const _ = require('lodash');
//delete spec.layout_line["line-sort-key"]
//delete spec.layout_fill["fill-sort-key"]
require('../vendor/mapbox-gl-native/scripts/style-code');
require('../../mapbox-gl-native/scripts/style-code');
// Specification parsing //
const lightProperties = Object.keys(spec[`light`]).reduce((memo, name) => {

View File

@@ -9,7 +9,7 @@ testCounter = 0
for cat in os.listdir(catPath):
testPath = catPath + cat + "/"
for test in os.listdir(testPath):
inputPath = os.getcwd() + "vendor/mapbox-gl-native/mapbox-gl-js/test/integration/render-tests/" + cat + "/" + test
inputPath = os.getcwd() + "../../mapbox-gl-native/mapbox-gl-js/test/integration/render-tests/" + cat + "/" + test
outputPath = testPath + test
expected = outputPath + "/expected.png"