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 20, 2019
1 parent b860824 commit 7e66e2c
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
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: [NaN, 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: [NaN, 2, 2]
},
{
// option in element (fallback)
data: [1, 1, 1, 1]
data: [NaN, 1, 1]
}
]
},
Expand Down
Binary file modified test/fixtures/controller.radar/borderCapStyle/scriptable.png
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
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: [NaN, 3, 3],
borderCapStyle: 'round'
},
{
// option in dataset
data: [2, 2, 2, 2],
data: [NaN, 2, 2],
borderCapStyle: 'square'
},
{
// option in element (fallback)
data: [1, 1, 1, 1]
data: [NaN, 1, 1]
}
]
},
Expand Down
Binary file modified test/fixtures/controller.radar/borderCapStyle/value.png
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
Expand Up @@ -6,7 +6,7 @@ module.exports = {
datasets: [
{
// option in dataset
data: [3, 3, 3, 3],
data: [3, 3, NaN, 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, NaN, 2],
borderColor: '#0000ff'
},
{
// option in element (fallback)
data: [1, 1, 1, 1]
data: [1, 1, NaN, 1]
}
]
},
Expand Down
Binary file modified test/fixtures/controller.radar/borderJoinStyle/scriptable.png
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
Expand Up @@ -6,19 +6,19 @@ module.exports = {
datasets: [
{
// option in dataset
data: [3, 3, 3, 3],
data: [3, 3, NaN, 3],
borderColor: '#ff0000',
borderJoinStyle: 'round'
},
{
// option in element (fallback)
data: [2, 2, 2, 2],
data: [2, 2, NaN, 2],
borderColor: '#0000ff',
borderJoinStyle: 'bevel'
},
{
// option in element (fallback)
data: [1, 1, 1, 1]
data: [1, 1, NaN, 1]
}
]
},
Expand Down
Binary file modified test/fixtures/controller.radar/borderJoinStyle/value.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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 7e66e2c

Please sign in to comment.