Skip to content

Commit bc6fbc1

Browse files
committed
#581 adding new test case
1 parent 14e537d commit bc6fbc1

File tree

4 files changed

+15
-62
lines changed

4 files changed

+15
-62
lines changed

src/traces/scatter/line_defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var colorscaleDefaults = require('../../components/colorscale/defaults');
1515

1616
// common to 'scatter', 'scatter3d', 'scattergeo' and 'scattergl'
1717
module.exports = function lineDefaults(traceIn, traceOut, defaultColor, layout, coerce) {
18-
18+
1919
var markerColor = (traceIn.marker || {}).color;
2020

2121
if(hasColorscale(traceIn, 'line')) {
Loading

test/image/mocks/gl3d_scatter-line-gradient-2.json

Lines changed: 9 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
{
22
"data": [{
3-
"x":["-4","-3","-2","-1","0","1","2","3","4","5","6"],
4-
"y":["7","5","6","4","2","3","1","3","-1","-4","-2"],
5-
"z":["2","3","4","5","4","3","2","1","0","-1","-2"],
6-
"mode": "lines+markers",
7-
"line": {
8-
"width": 5,
9-
"color": [10,15,20,25,30,35,40,45,50,55,60],
10-
"colorscale": "Rainbow",
11-
"showscale": true
12-
},
3+
"x":[-4,-3,-2,-1,0,1,2,3,4,5,6],
4+
"y":[7,5,6,4,2,3,1,3,-1,-4,-2],
5+
"z":[2,3,4,5,4,3,2,1,0,-1,-2],
6+
"mode": "markers",
7+
"line": {},
138
"marker": {
149
"size": 10,
1510
"colorscale": "Viridis",
16-
"color": [9,15,20,25,30,35,40,45,50,55,61]
11+
"color": [10,15,20,25,30,35,40,45,50,55,60],
12+
"cmin": 30,
13+
"autocolorscale": true,
14+
"reversescale": false
1715
},
1816
"name":"Col3",
1917
"type":"scatter3d",
@@ -23,55 +21,6 @@
2321
"uid":"3e38e6"
2422
}],
2523
"layout": {
26-
"yaxis":{
27-
"type":"linear",
28-
"autorange":true,
29-
"rangemode":"normal",
30-
"showline":true,
31-
"mirror":true,
32-
"showgrid":true,
33-
"zeroline":false,
34-
"zerolinecolor":"rgb(214, 39, 40)"
35-
},"xaxis":{
36-
"type":"linear",
37-
"autorange":true,
38-
"rangemode":"normal",
39-
"showline":true,
40-
"mirror":true,
41-
"showgrid":true,
42-
"zeroline":false,
43-
"zerolinecolor":"rgb(214, 39, 40)"
44-
},"scene":{
45-
"xaxis":{
46-
"type":"linear",
47-
"autorange":true,
48-
"rangemode":"normal",
49-
"showline":true,
50-
"mirror":true,
51-
"showgrid":true,
52-
"zeroline":false,
53-
"zerolinecolor":"rgb(214, 39, 40)"
54-
},"yaxis":{
55-
"type":"linear",
56-
"autorange":true,
57-
"rangemode":"normal",
58-
"showline":true,
59-
"mirror":true,
60-
"showgrid":true,
61-
"zeroline":false,
62-
"zerolinecolor":"rgb(214, 39, 40)"
63-
},"zaxis":{
64-
"type":"linear",
65-
"autorange":false,
66-
"rangemode":"normal",
67-
"showline":true,
68-
"mirror":true,
69-
"showgrid":true,
70-
"zeroline":false,
71-
"zerolinecolor":"rgb(214, 39, 40)",
72-
"range":[-3,6]
73-
}
74-
},
7524
"height":758,
7625
"width":1310,
7726
"autosize":true,

test/jasmine/karma.conf.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ func.defaultConfig = {
4545
// N.B. this field is filled below
4646
files: [],
4747

48-
exclude: [],
48+
exclude: [
49+
'tests/gl_plot_interact_test.js',
50+
'tests/gl_plot_interact_basic_test.js',
51+
'tests/gl2d_scatterplot_contour_test.js'
52+
],
4953

5054
// preprocess matching files before serving them to the browser
5155
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor

0 commit comments

Comments
 (0)