Merged
Conversation
simonbrunel
reviewed
Aug 24, 2017
| var meta0 = chart.getDatasetMeta(0); | ||
|
|
||
| [ | ||
| {b: 290, w: 83 / 2, x: 63, y: 161}, |
Member
There was a problem hiding this comment.
Similar to a talk we had, can we keep it in this form: w: 92 / 2 (sample size / number of stacks)
etimberg
approved these changes
Aug 24, 2017
Contributor
Author
|
@simonbrunel if there's another batch of tests needing cleanup feel free to let me know. I've just rebased #4646 and didn't need to touch the bar controller. The cleanup is definitely worth the efforts :) |
Member
|
Sounds really good, thanks @andig :) I guess most of the I'm wondering if we could limit the changes by using global options, for example: describe('Chart.controllers.bar', function() {
beforeAll(function() {
this._defaults = Chart.helpers.clone(Chart.defaults);
Chart.helpers.merge(Chart.defaults, {
global: {
legend: false,
title: false
},
scale: {
display: false
}
});
});
afterAll(function() {
Chart.helpers.merge(Chart.defaults, this._defaults);
});
});Not sure about Then, only need to change expectations but not options for every tests. |
yofreke
pushed a commit
to yofreke/Chart.js
that referenced
this pull request
Dec 30, 2017
exwm
pushed a commit
to exwm/Chart.js
that referenced
this pull request
Apr 30, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #4686
My recipe for doing this semi-automatic is this:
(?s)Expected ([0-9.]+)( to be close to pixel (\d+)(.*? )at .*?test/specs/controller.bar.tests.js:)(\d+):(\d+)\5 \3 \1- this gives line number, current expectation, actual value