Skip to content

Commit 921e5a5

Browse files
committed
add a test for the case of large horizontal margin
1 parent 09e2339 commit 921e5a5

5 files changed

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

test/image/mocks/automargin-large-margins.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
}],
3434
"layout": {
3535
"title": {
36-
"text": "Longest and shortest<br>names and time period"
36+
"text": "Longest and shortest<br>names and time periods"
3737
},
3838
"width": 240,
3939
"height": 300,

test/jasmine/tests/mock_test.js

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ var list = [
4040
'annotations-autorange',
4141
'arrow-markers',
4242
'automargin-large-margins',
43+
'automargin-large-margins-horizontal',
4344
'automargin-mirror-all',
4445
'automargin-mirror-allticks',
4546
'automargin-multiline-titles',
@@ -1105,6 +1106,7 @@ figs['animation_bar'] = require('@mocks/animation_bar');
11051106
// figs['annotations-autorange'] = require('@mocks/annotations-autorange');
11061107
figs['arrow-markers'] = require('@mocks/arrow-markers');
11071108
figs['automargin-large-margins'] = require('@mocks/automargin-large-margins');
1109+
figs['automargin-large-margins-horizontal'] = require('@mocks/automargin-large-margins-horizontal');
11081110
figs['automargin-mirror-all'] = require('@mocks/automargin-mirror-all');
11091111
figs['automargin-mirror-allticks'] = require('@mocks/automargin-mirror-allticks');
11101112
figs['automargin-multiline-titles'] = require('@mocks/automargin-multiline-titles');

0 commit comments

Comments
 (0)