Steven Kirk
30e78dc5b6
Only run unit tests on .net core.
This allows us to run them on linux.
8 years ago
Steven Kirk
7458f28ca9
Fix intermittently failing test.
Fixed in https://ci.appveyor.com/project/AvaloniaUI/Avalonia/build/0.1.4466 : this should prevent that by keeping both of the data objects alive.
8 years ago
Steven Kirk
6133837600
Locate tests directory in code.
Rather than using a hard-coded path.
8 years ago
Steven Kirk
8a80a724d7
Implement disabling of ListBox scrollbars.
Fixes #1344 .
8 years ago
Steven Kirk
589b76e9cd
Moved render tests for each platform to their own directory.
The test .cs files stay in the `Avalonia.RenderTests` directory but the D2D and Skia render test .csprojs are moved to their own directory: include the test files by using a glob in the .csproj.
This avoids the hack we were having to do to get `BaseIntermediateOutputPath` to work - we no longer have this problem as now each .csproj has its own directory, it can use the default directory for intermediate files.
8 years ago
Steven Kirk
062f67cd18
Added expected test output.
8 years ago
Steven Kirk
7a60b790b0
Added failing test for #1341 .
8 years ago
Steven Kirk
64ed0761c7
Rename Dispatcher invoke methods.
`InvokeAsync` -> `Post`
`InvokeTaskAsync` -> `InvokeAsync`
8 years ago
José Pedro
7cccc6bda0
Use nameof where possible.
8 years ago
Jeremy Koritzinsky
1c12cd4bd6
Fix x64 builds of Avaloina.Direct2D1. Refactor build scripts to reduce time and fix issues.
8 years ago
Jeremy Koritzinsky
b502f48ff8
Make sure Direct2D1 Unit tests (non-render tests) run in the build.
8 years ago
Jeremy Koritzinsky
f72577cf92
Clean up test scripts
8 years ago
Jeremy Koritzinsky
abe1afbb01
Retarget base unit tests library (that is just included in tests) back to net461.
8 years ago
Jeremy Koritzinsky
bc3e3cb25d
Update project file for Avalonia.UnitTests to use net47 instead of net461
8 years ago
Jeremy Koritzinsky
eb7c010462
Retarget .Net Framework projects to 4.7
Works around dotnet/standard#567 .
8 years ago
Jeremy Koritzinsky
ba481365f6
Enable turning off the setup check for appbuilder tests.
8 years ago
Jeremy Koritzinsky
b0d013ad25
Fix tests.
8 years ago
Jeremy Koritzinsky
b463d04e9f
Make KeyGestures with +,-,. in them match with both the non-numpad keys and the matching numpad keys.
Fixes #225
8 years ago
Jeremy Koritzinsky
6d075ad27b
Fix #424 .
8 years ago
Jeremy Koritzinsky
8bcd07730a
Change StylingParent for Popup to be PopupRoot so local styles flow to it.
8 years ago
Jeremy Koritzinsky
bdaf4a2046
Fix #1182 .
8 years ago
Steven Kirk
d01e19e3f4
Added failing test for #1275 .
8 years ago
Jeremy Koritzinsky
39d5ac957f
Fix test.
8 years ago
Jeremy Koritzinsky
f65ae1918f
Change TransformedBounds to a direct property on Visual (exposed on IVisual) instead of using an attached property in BoundsTracker.
8 years ago
Steven Kirk
78cbaee3a0
FIx collection comparisons.
8 years ago
Steven Kirk
4676ac5fb2
Don't use ObserveOn in Bindings.
Instead of using `Observable.ObserveOn` in bindings, interface with `Dispatcher.UIThread` to schedule binding notifications on the UI thread. This saves a significant amount of memory.
8 years ago
Steven Kirk
2a87dbd6ca
Fix opacity mask rendering.
We're potentially creating a new immutable version of the opacity mask each time the `VisualNode` is updated. Need to implement comparison between mutable and immutable brushes.
8 years ago
Steven Kirk
1d1f31794e
Fix layers with opacity.
We were pushing the opacity twice.
8 years ago
Steven Kirk
e6b5df8d08
Simplified DeferredRendererTests,
8 years ago
Steven Kirk
04c489daa5
Make Collection Properties get-only
Fixes #1302 .
8 years ago
Jeremy Koritzinsky
05eda280de
Refactor DeferredSetter logic to allow passing references to backing fields and utilizing that in all usages. Refactor SetAndRaise logic to be combined and simplified between the two use cases. Now the common case delegates to the less specialized case.
8 years ago
Jeremy Koritzinsky
ca9a4c4128
PR Feedback.
8 years ago
Jeremy Koritzinsky
d8efff505d
Clean up formatting. Fix bug in PriorityValue usage of DeferredSetter. Change DeferredSetter to use ConditionalWeakTable to not hold strong references to PriorityValue objects.
8 years ago
Steven Kirk
4f8f5e9c71
Added some benchmarks
Added some benchmarks to test setting and binding properties.
8 years ago
Steven Kirk
9609d93f3b
Don't create render layers for non-parent controls.
Only create a new render layer when a control has both an animating opacity _and_ children.
8 years ago
Steven Kirk
68bdbca899
Only create render layers when Opacity is animating.
Previously we were creating a new render layer for all controls with `Opacity != 1`. This was causing the `Calendar` page in ControlCatalog to render _really_ slowly. Instead, only create a new render layer when `Opacity` is being animated.
Also don't even render controls where `Opacity == 0`.
8 years ago
Steven Kirk
409e40c8be
Added AvaloniaObject.IsAnimating(property).
Added a method to test whether a property on an object is currently animating.
8 years ago
Steven Kirk
3243e0fd15
Added failing test for #1303
`TemplateBinding_With_Null_Path_Works` is a failing test for #1303 , also added a passing test for the same thing with `Binding`: `Binding_With_Null_Path_Works`.
8 years ago
Steven Kirk
b40be8b1c4
Fix error in AvaloniaList.MoveRange event.
It was raising the event with the offset `newIndex` rather than the `newIndex` that was passed.
8 years ago
Steven Kirk
fc7a83ee72
Fixed panel collection change actions.
As suggested in #1286
8 years ago
Steven Kirk
26b2771864
Added failing test for #1297
8 years ago
Steven Kirk
546cbca0ef
Added failing test for #1247 .
8 years ago
Steven Kirk
2e8521e690
Added failing test for #1271 .
8 years ago
Jeremy Koritzinsky
f9b578ab0e
Make AncestorType required for ancestor searching via the visual tree.
9 years ago
Steven Kirk
5cc5b91930
Fix xunit warnings.
9 years ago
Nikita Tsukanov
9152cbbe72
Added a unit test for attached properties with namespace
9 years ago
Steven Kirk
ebc66cfaac
Added failing test for #1255 .
9 years ago
José Pedro
755531631e
Implemented three states on ToggleButton, CheckBox and RadioButton.
9 years ago
Steven Kirk
4116bc54c0
Added failing unit test for #1260 .
9 years ago
Jeremy Koritzinsky
edf2018149
Refactored tests to move XAML Binding class tests into Avalonia.Markup.Xaml.UnitTests.
9 years ago