-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
test(#8083) #8087
test(#8083) #8087
Conversation
…1 and 1, and replaced Math.hypot with Math.sqrt
…pathOffset on _setPositionDimension function for polyline
firefox is crazy enough to calculate this wrong
This reverts commit 3850166.
@ShaMan123 As the canvas node has a bug with the stroke miter limit calculation, I created this condesandbox to generate the goldens via browser: https://codesandbox.io/s/generate-goldens-stroke-projection-tcn10x . It generates a zipped file. I added concave cases to the test too Since I can't commit to this PR, I commited on the A strange behavior is occurring in the tests... If I just run the But when I run all modules tests at the same time, some 'stroke projection' tests fail: Analyzing the difference in the images, there is a slight distortion at rectangle edges that doesn't happen when we run all the tests: The curious thing is that this distortion is present in goldens and also when we only run the tests of the |
@luizzappa glad to see you back |
Ah cool! I hadn't seen your update on the generation of goldens (actually now that I've looked at the code more calmly, and I've seen that if the golden doesn't exist, it generates it for you.. I thought they were generated externally) Feel free to update. I ended up splitting the test into concave and convex cases. Tomorrow we'll take care of it |
@ShaMan123, did this update remain after migrating to typescript? I'm trying to run the tests, but it seems to me that the goldens were generated by node (which has that problem with miter-limit) |
Did you open a new PR? |
I was working locally. Just opened it here: #8374 |
This PR adds visual tests to #8083
Merge only after that is merged.
It has tons of goldens, the only file changed is
test/visual/generic_rendering.js
Visuals exposed a bug in
strokeMiterLimit
calculation.I think we ought to add other scaling and vpt values