Skip to content

Commit 09e2339

Browse files
committed
add image test
1 parent 404fe7a commit 09e2339

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"data": [{
3+
"name": "< D E A T H >",
4+
"marker": { "color": "red" },
5+
"x": [
6+
"Antonio Vivaldi",
7+
"Johann Sebastian Bach",
8+
"Wolfgang Amadeus Mozart",
9+
"Ludwig van Beethoven"
10+
],
11+
"y": [
12+
"1741",
13+
"1750",
14+
"1791",
15+
"1827"
16+
]
17+
},
18+
{
19+
"name": "< B I R T H >",
20+
"marker": { "color": "blue" },
21+
"x": [
22+
"Antonio Vivaldi",
23+
"Johann Sebastian Bach",
24+
"Wolfgang Amadeus Mozart",
25+
"Ludwig van Beethoven"
26+
],
27+
"y": [
28+
"1678",
29+
"1685",
30+
"1756",
31+
"1770"
32+
]
33+
}],
34+
"layout": {
35+
"title": {
36+
"text": "Longest and shortest<br>names and time period"
37+
},
38+
"width": 240,
39+
"height": 300,
40+
"margin": {
41+
"t": 80,
42+
"b": 20,
43+
"l": 20,
44+
"r": 20
45+
},
46+
"yaxis": {
47+
"type": "date",
48+
"automargin": true
49+
},
50+
"xaxis": {
51+
"automargin": true
52+
}
53+
}
54+
}

test/jasmine/tests/mock_test.js

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ var list = [
3939
'annotations',
4040
'annotations-autorange',
4141
'arrow-markers',
42+
'automargin-large-margins',
4243
'automargin-mirror-all',
4344
'automargin-mirror-allticks',
4445
'automargin-multiline-titles',
@@ -1103,6 +1104,7 @@ figs['animation_bar'] = require('@mocks/animation_bar');
11031104
// figs['annotations'] = require('@mocks/annotations');
11041105
// figs['annotations-autorange'] = require('@mocks/annotations-autorange');
11051106
figs['arrow-markers'] = require('@mocks/arrow-markers');
1107+
figs['automargin-large-margins'] = require('@mocks/automargin-large-margins');
11061108
figs['automargin-mirror-all'] = require('@mocks/automargin-mirror-all');
11071109
figs['automargin-mirror-allticks'] = require('@mocks/automargin-mirror-allticks');
11081110
figs['automargin-multiline-titles'] = require('@mocks/automargin-multiline-titles');

0 commit comments

Comments
 (0)