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

fixed issue 206, added tests #207

Closed
wants to merge 24 commits into from

Conversation

RomanKalachik
Copy link
Contributor

No description provided.

canvas.Save();
canvas.DrawPicture(_svg.Picture);
canvas.Restore();
lock (_svg.Locker)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems not needed

Copy link
Contributor Author

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.UiTests/AvaloniaApp.cs Outdated Show resolved Hide resolved
tests/Avalonia.Svg.Skia.UiTests/AvaloniaUiTestFramework.cs Outdated Show resolved Hide resolved
tests/Avalonia.Svg.Skia.UiTests/SvgImageReloadTests.cs Outdated Show resolved Hide resolved
@wieslawsoltes
Copy link
Owner

@RomanKalachik CI is failing to run new unit tests

@RomanKalachik
Copy link
Contributor Author

@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.

@wieslawsoltes
Copy link
Owner

@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

@wieslawsoltes
Copy link
Owner

@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

@RomanKalachik
Copy link
Contributor Author

@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.

Copy link
Owner

@wieslawsoltes wieslawsoltes left a 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 ?

@wieslawsoltes
Copy link
Owner

@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.

I am afraid this might cause serious CI issues

@RomanKalachik
Copy link
Contributor Author

@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.

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

@RomanKalachik
Copy link
Contributor Author

Why changes in the externals/SVG ?

It was not intentional, will correct later today

@wieslawsoltes
Copy link
Owner

Super-seeded by #212

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants