Adapting scripts and project files to the new directory structure
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user