Skip to content

Commit 4934f7f

Browse files
committed
Improve image tests
1 parent c63e4d8 commit 4934f7f

File tree

14 files changed

+17
-14
lines changed

14 files changed

+17
-14
lines changed

test/fixtures/controller.radar/borderCapStyle/scriptable.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ module.exports = {
22
config: {
33
type: 'radar',
44
data: {
5-
labels: [0, 1, 2, 3],
5+
labels: [0, 1, 2],
66
datasets: [
77
{
88
// option in dataset
9-
data: [3, 3, 3, 3],
9+
data: [null, 3, 3],
1010
borderCapStyle: function(ctx) {
1111
var index = (ctx.datasetIndex % 2);
1212
return index === 0 ? 'round'
@@ -16,11 +16,11 @@ module.exports = {
1616
},
1717
{
1818
// option in element (fallback)
19-
data: [2, 2, 2, 2]
19+
data: [null, 2, 2]
2020
},
2121
{
2222
// option in element (fallback)
23-
data: [1, 1, 1, 1]
23+
data: [null, 1, 1]
2424
}
2525
]
2626
},
Loading

test/fixtures/controller.radar/borderCapStyle/value.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ module.exports = {
22
config: {
33
type: 'radar',
44
data: {
5-
labels: [0, 1, 2, 3],
5+
labels: [0, 1, 2],
66
datasets: [
77
{
88
// option in dataset
9-
data: [3, 3, 3, 3],
9+
data: [null, 3, 3],
1010
borderCapStyle: 'round'
1111
},
1212
{
1313
// option in dataset
14-
data: [2, 2, 2, 2],
14+
data: [null, 2, 2],
1515
borderCapStyle: 'square'
1616
},
1717
{
1818
// option in element (fallback)
19-
data: [1, 1, 1, 1]
19+
data: [null, 1, 1]
2020
}
2121
]
2222
},
Loading

test/fixtures/controller.radar/borderJoinStyle/scriptable.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
datasets: [
77
{
88
// option in dataset
9-
data: [3, 3, 3, 3],
9+
data: [3, 3, null, 3],
1010
borderColor: '#ff0000',
1111
borderJoinStyle: function(ctx) {
1212
var index = ctx.datasetIndex % 3;
@@ -17,12 +17,12 @@ module.exports = {
1717
},
1818
{
1919
// option in element (fallback)
20-
data: [2, 2, 2, 2],
20+
data: [2, 2, null, 2],
2121
borderColor: '#0000ff'
2222
},
2323
{
2424
// option in element (fallback)
25-
data: [1, 1, 1, 1]
25+
data: [1, 1, null, 1]
2626
}
2727
]
2828
},
Loading

test/fixtures/controller.radar/borderJoinStyle/value.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ module.exports = {
66
datasets: [
77
{
88
// option in dataset
9-
data: [3, 3, 3, 3],
9+
data: [3, 3, null, 3],
1010
borderColor: '#ff0000',
1111
borderJoinStyle: 'round'
1212
},
1313
{
1414
// option in element (fallback)
15-
data: [2, 2, 2, 2],
15+
data: [2, 2, null, 2],
1616
borderColor: '#0000ff',
1717
borderJoinStyle: 'bevel'
1818
},
1919
{
2020
// option in element (fallback)
21-
data: [1, 1, 1, 1]
21+
data: [1, 1, null, 1]
2222
}
2323
]
2424
},
Loading

test/fixtures/controller.radar/pointBorderColor/indexable.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ module.exports = {
3838
'#8800ff',
3939
'#ffff88'
4040
],
41+
borderWidth: 5,
4142
radius: 10
4243
}
4344
},
Loading

test/fixtures/controller.radar/pointBorderColor/scriptable.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ module.exports = {
3636
: value > -8 ? '#ff0000'
3737
: '#00ff00';
3838
},
39+
borderWidth: 5,
3940
radius: 10
4041
}
4142
},
Loading

test/fixtures/controller.radar/pointBorderColor/value.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ module.exports = {
2424
},
2525
point: {
2626
borderColor: '#00ff00',
27+
borderWidth: 5,
2728
radius: 10
2829
}
2930
},
Loading

0 commit comments

Comments
 (0)