Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Label fixtures: merge canvas test cases and remove useless point test #647

Merged
merged 2 commits into from Jan 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 20 additions & 4 deletions test/fixtures/label/canvas.js
@@ -1,16 +1,16 @@
const canvas = window.createCanvas();
module.exports = {
tolerance: 0.0055,
config: {
type: 'scatter',
options: {
scales: {
x: {
display: true,
display: false,
min: -10,
max: 10
},
y: {
display: true,
display: false,
min: -10,
max: 10
}
Expand All @@ -23,7 +23,23 @@ module.exports = {
type: 'label',
xValue: 0,
yValue: 0,
content: window.createCanvas
content: canvas
},
canvasSmall: {
type: 'label',
xValue: -6,
yValue: 6,
content: canvas,
width: 100,
height: () => 100 * canvas.height / canvas.width,
},
canvasPerc: {
type: 'label',
xValue: 6,
yValue: -6,
content: canvas,
width: '50%',
height: '50%',
}
}
}
Expand Down
Binary file modified test/fixtures/label/canvas.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 0 additions & 44 deletions test/fixtures/label/canvasSizeChanged.js

This file was deleted.

Binary file removed test/fixtures/label/canvasSizeChanged.png
Binary file not shown.
51 changes: 0 additions & 51 deletions test/fixtures/label/stylingPoint.js

This file was deleted.

Binary file removed test/fixtures/label/stylingPoint.png
Binary file not shown.