-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Use short labels for the legend tests so as not to be affected by the font width #5842
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still have one failing test :\
Firefox 63.0.0 (Windows 10.0.0) Legend block tests should draw correctly when the legend is positioned on the top FAILED
Expected 105 to be close to pixel 107.
@test/specs/plugin.legend.tests.js:213:48
@test/specs/plugin.legend.tests.js:211:5
Chrome 70.0.3538 (Windows 10.0.0): Executed 759 of 763 (skipped 4) SUCCESS (4.835 secs / 4.629 secs)
Firefox 63.0.0 (Windows 10.0.0): Executed 535 of 763 (1 FAILED) (skipped 4) (0 secs / 4.832 secs)
Firefox 63.0.0 (Windows 10.0.0) Legend block tests should draw correctly when the legend is positioned on the top FAILED
Expected 105 to be close to pixel 107.
Chrome 70.0.3538 (Windows 10.0.0): Executed 759 of 763 (skipped 4) SUCCESS (4.835 secs / 4.629 secs)
Firefox 63.0.0 (Windows 10.0.0): Executed 759 of 763 (1 FAILED) (skipped 4) (6.886 secs / 6.609 secs)
TOTAL: 1 FAILED, 1517 SUCCESS
All the text labels for the label box position tests are changed to empty. @simonbrunel Can you test again? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works, are these tests still pertinent without labels?
Well, they test the sizes and positions of |
I think it will be the same issue with |
I tried Arial with different browsers on both Mac and Windows, but the results are not consistent at all (reference). Eventually, I reverted the changes in labels and added some adjustment to pixel values so that differences across environments stay within the margin range (+/-2). |
It was passed on Mac and Windows, but still fails on Linux. |
Now all the test passed. The results were more consistent when |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @nagix, it passes on my machine now.
This fixes the #5816 test failures that can happen depending on environments.