-
Notifications
You must be signed in to change notification settings - Fork 60
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
fixed issue 206, added tests #207
Conversation
canvas.Save(); | ||
canvas.DrawPicture(_svg.Picture); | ||
canvas.Restore(); | ||
lock (_svg.Locker) |
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.
This seems not needed
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.
this code fixes threading issue. There are two threads: render thread and a thread changing svg image. This code is 100% needed to fix the issue.
tests/Avalonia.Svg.Skia.UnitTests/Avalonia.Svg.Skia.UnitTests.csproj
Outdated
Show resolved
Hide resolved
@RomanKalachik CI is failing to run new unit tests |
It is not unit test. It is UI test. It reqires a CI runner wich can create windows. |
Avalonia provides headless unit testing compatible with Unit Testing |
https://docs.avaloniaui.net/docs/concepts/headless/headless-xunit |
Unfortunately, headless is not an option is this case.. Only a UI test with a real window and compositor reproduces the issue #206. |
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.
Why changes in the externals/SVG ?
I am afraid this might cause serious CI issues |
That's why UI test was moved to a separate project wich does not run by the current CI |
It was not intentional, will correct later today |
ef199e7
to
ea187d7
Compare
Super-seeded by #212 |
No description provided.