Skip to content

Commit d981b3d

Browse files
committed
use vendor in tests
1 parent 0a38963 commit d981b3d

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

devtools/test_dashboard/devtools.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var Tabs = {
1919
Plotly.setPlotConfig({
2020

2121
// use local topojson files
22-
topojsonURL: '../../dist/topojson/',
22+
topojsonURL: '../../vendor/topojson/',
2323

2424
// register mapbox access token
2525
// run `npm run preset` if you haven't yet

devtools/test_dashboard/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</div>
2020
<div id="snapshot"></div>
2121

22-
<script src="../../dist/extras/mathjax/MathJax.js?config=TeX-AMS-MML_SVG"></script>
22+
<script src="../../vendor/extras/mathjax/MathJax.js?config=TeX-AMS-MML_SVG"></script>
2323
<script id="source" src="../../build/plotly.js" charset="utf-8"></script>
2424
<script src="../../build/test_dashboard-bundle.js" charset="utf-8"></script>
2525
</body>

test/image/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<body>
44
<!-- this index file gets copied in to the image server docker -->
5-
<script src="../plotly.js/dist/extras/mathjax/MathJax.js?config=TeX-AMS-MML_SVG"></script>
5+
<script src="../plotly.js/vendor/extras/mathjax/MathJax.js?config=TeX-AMS-MML_SVG"></script>
66
<script src="../plotly.js/build/plotly.js" charset="utf-8"></script>
77
<script src="../plotly.js/dist/plotly-geo-assets.js" charset="utf-8"></script>
88
<script src="./main.js"></script>

test/jasmine/bundle_tests/mathjax_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('Test MathJax:', function() {
2424
mathJaxScriptTag.onerror = function() {
2525
fail('MathJax failed to load');
2626
};
27-
mathJaxScriptTag.src = '/base/dist/extras/mathjax/MathJax.js?config=TeX-AMS-MML_SVG';
27+
mathJaxScriptTag.src = '/base/vendor/extras/mathjax/MathJax.js?config=TeX-AMS-MML_SVG';
2828
document.body.appendChild(mathJaxScriptTag);
2929
});
3030

test/jasmine/karma.conf.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ var pathToStrictD3 = path.join(__dirname, '..', '..', 'tasks', 'util', 'strict_d
121121
var pathToJQuery = path.join(__dirname, 'assets', 'jquery-1.8.3.min.js');
122122
var pathToCustomMatchers = path.join(__dirname, 'assets', 'custom_matchers.js');
123123
var pathToUnpolyfill = path.join(__dirname, 'assets', 'unpolyfill.js');
124-
var pathToMathJax = path.join(constants.pathToDist, 'extras', 'mathjax');
124+
var pathToMathJax = path.join(constants.pathToVendor, 'extras', 'mathjax');
125125

126126
var reporters = [];
127127
if(argv['report-progress'] || argv['report-spec'] || argv['report-dots']) {
@@ -183,7 +183,7 @@ func.defaultConfig = {
183183
// more info: http://karma-runner.github.io/3.0/config/files.html
184184
{pattern: pathToMathJax + '/**', included: false, watched: false, served: true},
185185
// available to fetch local topojson files
186-
{pattern: constants.pathToTopojsonDist + '/**', included: false, watched: false, served: true}
186+
{pattern: constants.pathToTopojsonVendor + '/**', included: false, watched: false, served: true}
187187
],
188188

189189
// list of files / pattern to exclude

test/jasmine/tests/geo_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var HOVERMINTIME = require('@src/components/fx').constants.HOVERMINTIME;
2424

2525
// use local topojson files
2626
Plotly.setPlotConfig({
27-
topojsonURL: '/base/dist/topojson/'
27+
topojsonURL: '/base/vendor/topojson/'
2828
});
2929

3030
function move(fromX, fromY, toX, toY, delay) {

0 commit comments

Comments
 (0)