Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e9ef5fe

Browse files
committed
add some more test cases for connect-gaps and kill duplicate line in the dashboard
1 parent a4c4e0d commit e9ef5fe

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

devtools/test_dashboard/test_gl3d.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ plots['marker-arrays'] = require('@mocks/gl3d_marker-arrays.json');
3535
plots['scatter3d-colorscale'] = require('@mocks/gl3d_scatter3d-colorscale.json');
3636
plots['autocolorscale'] = require('@mocks/gl3d_autocolorscale.json');
3737
plots['nan-holes'] = require('@mocks/gl3d_nan-holes.json');
38-
plots['connectgaps'] = require('@mocks/gl3d_scatter3d-connectgaps.json');
38+
plots['scatter3d-connectgaps'] = require('@mocks/gl3d_scatter3d-connectgaps.json');
3939
plots['tet'] = require('@mocks/gl3d_tet.json');
4040
plots['surface_intensity'] = require('@mocks/gl3d_surface_intensity.json');
41-
plots['connectgaps'] = require('@mocks/gl3d_scatter3d-connectgaps.json');
4241

4342
plotButtons(plots, figDir);

test/image/mocks/gl3d_scatter3d-connectgaps.json

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,29 @@
22
"data": [{
33
"type": "scatter3d",
44
"mode": "lines",
5-
"x": [0, 1, 2, 3, 4, 5],
5+
"x": [0, 0, null, null, 0, 0],
66
"y": [0, 1, 2, 3, 4, 5],
77
"z": [2, 1, null, null, 0, 3],
8-
"connectgaps": false
8+
"connectgaps": false,
9+
"name": "gap in z"
10+
}, {
11+
"type": "scatter3d",
12+
"mode": "lines",
13+
"x": [1, 1, 1, 1, 1, 1],
14+
"y": [0, 1, null, null, 4, 5],
15+
"z": [2, 1, 2, 0, 0, 3],
16+
"connectgaps": false,
17+
"name": "gap in y"
18+
},{
19+
"type": "scatter3d",
20+
"mode": "lines",
21+
"x": [2, 2, null, null, 2, 2],
22+
"y": [0, 1, 2, 3, 4, 5],
23+
"z": [2, 1, 2, 0, 0, 3],
24+
"connectgaps": false,
25+
"name": "gap in x"
926
}],
1027
"layout": {
11-
"title": "connect gaps test"
28+
"title": "connect gaps test",
1229
}
1330
}

0 commit comments

Comments
 (0)