Skip to content

Commit

Permalink
Tools: Moved test dependencies from the missing utils folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
TorsteinHonsi committed Mar 16, 2018
1 parent 354b648 commit 9cb2012
Show file tree
Hide file tree
Showing 8 changed files with 442 additions and 7 deletions.
2 changes: 1 addition & 1 deletion samples/unit-tests/chart/chart-update-chart-2/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ QUnit.test('Option chart plot border and background update', function (assert) {
});

var testimage = (location.host === 'localhost:9876') ?
'base/utils/samples/testimage.png' : // karma
'base/test/testimage.png' : // karma
'testimage.png'; // utils

chart.update({
Expand Down
2 changes: 1 addition & 1 deletion samples/unit-tests/chart/events-load/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

(function () {
var url = (location.host === 'localhost:9876') ?
'url(base/utils/samples/testimage.png)' : // karma
'url(base/test/testimage.png)' : // karma
'url(testimage.png)'; // utils

QUnit.test('Load event without images', function (assert) {
Expand Down
2 changes: 1 addition & 1 deletion samples/unit-tests/legend/symbolheight/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ QUnit.test(
var done = assert.async();

var url = (location.host === 'localhost:9876') ?
'url(base/utils/samples/testimage.png)' : // karma
'url(base/test/testimage.png)' : // karma
'url(testimage.png)'; // utils

var chart = Highcharts.chart('container', {
Expand Down
2 changes: 1 addition & 1 deletion samples/unit-tests/svgrenderer/label/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ QUnit.test('New label with url symbol (#5635)', function (assert) {
);

var url = (location.host === 'localhost:9876') ?
'url(base/utils/samples/testimage.png)' : // karma
'url(base/test/testimage.png)' : // karma
'url(testimage.png)'; // utils

var label = renderer.label('Max observation', 270, 50, url, 100, 100)
Expand Down
2 changes: 1 addition & 1 deletion samples/unit-tests/svgrenderer/symbol/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ QUnit.test('Symbol tests', function (assert) {
);

var url = (location.host === 'localhost:9876') ?
'url(base/utils/samples/testimage.png)' : // karma
'url(base/test/testimage.png)' : // karma
'url(testimage.png)'; // utils

function ifDone() {
Expand Down
4 changes: 2 additions & 2 deletions test/karma-conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ module.exports = function (config) {
frameworks: ['qunit'],
files: files.concat([
{
pattern: 'utils/samples/*.png', // testimage.png
pattern: 'test/*.png', // testimage.png
watched: false,
included: false,
served: true
Expand All @@ -209,7 +209,7 @@ module.exports = function (config) {
},

// Set up
'utils/samples/test-controller.js',
'test/test-controller.js',
'test/karma-setup.js'
], tests),

Expand Down
Loading

0 comments on commit 9cb2012

Please sign in to comment.