Dan Walmsley
4aa51e80da
fix more tests.
6 years ago
Dan Walmsley
87c326a8fd
fix mocks.
6 years ago
Dan Walmsley
2ad4002686
fix unit tests.
6 years ago
Dan Walmsley
0148106f54
Seperate RenderScaling from DesktopScaling.
6 years ago
Benedikt Schroeder
c5edf9bc5d
Initial
6 years ago
Dariusz Komosinski
c414e26cf6
Ensure that TryParse won't throw.
6 years ago
Nikita Tsukanov
6c89473ca1
Fixed tests
6 years ago
Nikita Tsukanov
d355007c57
Extracted runtime XAML loader to a separate package
6 years ago
Steven Kirk
0301d80c30
Added failing test for removing selected item with BeginInit.
6 years ago
Steven Kirk
41831066c2
Revert "Fix selection after deleting an item."
6 years ago
Dan Walmsley
1c099b6e8c
add failing unit tests for cases.
6 years ago
Dan Walmsley
de87609de1
add failing unit test.
6 years ago
Benedikt Schroeder
e87697f901
Allow combining TextTrimming and TextWrapping
6 years ago
Steven Kirk
6555a51f5a
Fix selection after deleting an item.
`SelectionModel` needs to subscribe to `CollectionChanged` on the items before `ItemsControl` in order for the selection to be correct when we come to setting the selected state.
Because `SelectionModel.Source` isn't subscribed during initialization in `ItemsChanged`, we also need to make sure we don't subscribe `ItemsControl` to the collection changes during initialization. Instead subscribe in `OnInitialized` (this requires a few tests to be rooted in order to be called).
Fixes #4293
6 years ago
Steven Kirk
73a2637eed
Added failing test for removing selected item with BeginInit.
6 years ago
Dan Walmsley
a5499a908d
remove usings.
6 years ago
Dan Walmsley
162583b2de
add a failing unit test.
6 years ago
Dan Walmsley
9f6c52711e
add more relativepanel tests.
6 years ago
FoggyFinder
1c8541c060
fix typo & add missing attribute
6 years ago
Steven Kirk
8176ef6648
Added failing test.
Items are being materialized twice when not using virtualization.
6 years ago
Steven Kirk
a8b7e87938
Added IRecyclingDataTemplate.
In #4218 we imported `IElementFactory` from WinUI which is broadly analogous to a recycling datatemplate for lists. In Avalonia this implement `IDataTemplate` in order to have a common base class for all types of data templates.
The problem with this is that `IDataTemplate` already had a `SupportsRecycling` property which is incompatible with the way recycling is implemented in `IElementFactory`. Instead, introduce an `IRecyclingDataTemplate` to signal data templates that support recycling.
6 years ago
Dan Walmsley
b64ca7d5b7
add more unit tests for relative panel
6 years ago
Benedikt Schroeder
40711f8597
Fix wrapping test
6 years ago
Benedikt Schroeder
4e53adb9d4
Fix MeasureText for empty glyph clusters
6 years ago
Dan Walmsley
4b9cf819ba
acceptable relativepanel implementation.
6 years ago
Dan Walmsley
df1bfd60b5
skip test.
6 years ago
Dan Walmsley
835e87e8cd
add a failing relative panel test.
6 years ago
Dan Walmsley
be55373811
add some unit tests and tidy relative panel
6 years ago
Benedikt Schroeder
bc9926014f
Fix typeface fallback for embedded fonts
Fix text wrapping for multiple corner cases
6 years ago
Jeremy Koritzinsky
5fb7fe3c32
Fix Discovering properties and indexers on parent interfaces of an interface type.
Fixes #4234
6 years ago
Dan Walmsley
ccd5a92725
apply fix to timepicker tests also.
6 years ago
Steven Kirk
f1e4a6a50a
Register a font manager.
`DatePickerTests` are proving to be flaky, register the services that are reported missing when they fail.
6 years ago
Maksym Katsydan
6f7dac83d1
Add focus-visible support with tests
6 years ago
Steven Kirk
8d2af50808
Add failing tests for #3552 .
6 years ago
Steven Kirk
ed43a5753a
Handle BindingNotifications in LogicalNotNode.
Fixes handling binding notifications in `LogicalNotNote`. Previously if a `!` was placed in a binding that produced a `BindingNotification`, then `LogicalNotNode` tried to convert the `BindingNotification` to `bool` and failed, throwing an exception. Handle this properly.
6 years ago
amwx
c9a4543d02
Skip failing time picker test
6 years ago
Benedikt Schroeder
c9a98da01a
Fix mandatory break
6 years ago
Benedikt Schroeder
f211e3c724
Disable generators
Remove vertical tab and form feed
6 years ago
Benedikt Schroeder
f377172947
Introduce line break tests
6 years ago
Benedikt Schroeder
4fe771786e
Update to Unicode 13.0
6 years ago
Jumar Macato
baf63bfeec
add failing test
6 years ago
Jumar Macato
ea12af0778
address review and add unit tests
6 years ago
amwx
61294fcaff
Add unit tests
6 years ago
Steven Kirk
a0e8afe841
Added rotate transform test.
6 years ago
Steven Kirk
b5da0310f1
Update tests from UWP tests.
UWP tests are at: https://github.com/grokys/EffectiveBoundsTestsUWP
Try to make the Avalonia tests match them as closely as possible in order to easily port them across.
6 years ago
Steven Kirk
9c7aeaf713
Initial implementation of EffectiveViewportChanged.
6 years ago
Benedikt Schroeder
2a181d9acb
Introduce TextRunProperties
6 years ago
Steven Kirk
2807cbe6cb
Make LayoutManager disposable.
And dispose it on `TopLevel` close: this allows layout passes to be run before a window/popup is shown but prevents it being run after close.
6 years ago
Steven Kirk
f14d73f5c9
Disable render layers.
We need a new renderer :/
Fixes #2244
6 years ago
Nikita Tsukanov
a3fe36b8a5
Fixed memory tests broken by Moq
6 years ago