Skip to content

Commit

Permalink
Improve image tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nagix committed May 21, 2019
1 parent c63e4d8 commit 4934f7f
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 14 deletions.
8 changes: 4 additions & 4 deletions test/fixtures/controller.radar/borderCapStyle/scriptable.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3],
labels: [0, 1, 2],
datasets: [
{
// option in dataset
data: [3, 3, 3, 3],
data: [null, 3, 3],
borderCapStyle: function(ctx) {
var index = (ctx.datasetIndex % 2);
return index === 0 ? 'round'
Expand All @@ -16,11 +16,11 @@ module.exports = {
},
{
// option in element (fallback)
data: [2, 2, 2, 2]
data: [null, 2, 2]
},
{
// option in element (fallback)
data: [1, 1, 1, 1]
data: [null, 1, 1]
}
]
},
Expand Down
Binary file modified test/fixtures/controller.radar/borderCapStyle/scriptable.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions test/fixtures/controller.radar/borderCapStyle/value.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@ module.exports = {
config: {
type: 'radar',
data: {
labels: [0, 1, 2, 3],
labels: [0, 1, 2],
datasets: [
{
// option in dataset
data: [3, 3, 3, 3],
data: [null, 3, 3],
borderCapStyle: 'round'
},
{
// option in dataset
data: [2, 2, 2, 2],
data: [null, 2, 2],
borderCapStyle: 'square'
},
{
// option in element (fallback)
data: [1, 1, 1, 1]
data: [null, 1, 1]
}
]
},
Expand Down
Binary file modified test/fixtures/controller.radar/borderCapStyle/value.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions test/fixtures/controller.radar/borderJoinStyle/scriptable.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
datasets: [
{
// option in dataset
data: [3, 3, 3, 3],
data: [3, 3, null, 3],
borderColor: '#ff0000',
borderJoinStyle: function(ctx) {
var index = ctx.datasetIndex % 3;
Expand All @@ -17,12 +17,12 @@ module.exports = {
},
{
// option in element (fallback)
data: [2, 2, 2, 2],
data: [2, 2, null, 2],
borderColor: '#0000ff'
},
{
// option in element (fallback)
data: [1, 1, 1, 1]
data: [1, 1, null, 1]
}
]
},
Expand Down
Binary file modified test/fixtures/controller.radar/borderJoinStyle/scriptable.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions test/fixtures/controller.radar/borderJoinStyle/value.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ module.exports = {
datasets: [
{
// option in dataset
data: [3, 3, 3, 3],
data: [3, 3, null, 3],
borderColor: '#ff0000',
borderJoinStyle: 'round'
},
{
// option in element (fallback)
data: [2, 2, 2, 2],
data: [2, 2, null, 2],
borderColor: '#0000ff',
borderJoinStyle: 'bevel'
},
{
// option in element (fallback)
data: [1, 1, 1, 1]
data: [1, 1, null, 1]
}
]
},
Expand Down
Binary file modified test/fixtures/controller.radar/borderJoinStyle/value.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ module.exports = {
'#8800ff',
'#ffff88'
],
borderWidth: 5,
radius: 10
}
},
Expand Down
Binary file modified test/fixtures/controller.radar/pointBorderColor/indexable.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ module.exports = {
: value > -8 ? '#ff0000'
: '#00ff00';
},
borderWidth: 5,
radius: 10
}
},
Expand Down
Binary file modified test/fixtures/controller.radar/pointBorderColor/scriptable.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions test/fixtures/controller.radar/pointBorderColor/value.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ module.exports = {
},
point: {
borderColor: '#00ff00',
borderWidth: 5,
radius: 10
}
},
Expand Down
Binary file modified test/fixtures/controller.radar/pointBorderColor/value.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4934f7f

Please sign in to comment.