Steven Kirk
7dbe277653
More lifecycle event tests with virtualization.
3 years ago
Steven Kirk
9d012fbb6b
Fix terminology.
3 years ago
Steven Kirk
ce2cd52964
Add lifecycle event tests with virtualization.
And fix index error in VirtualizingStackPanel.
3 years ago
Steven Kirk
791ea8beef
Added container lifecycle events.
Seems we weren't calling `ClearItemContainer` for `ItemIsOwnContainer` items in `PanelContainerGenerator`. Fixed that too.
3 years ago
Steven Kirk
456ddbb04b
Don't try to run macOS tests on Windows.
3 years ago
Steven Kirk
d87e7faa60
Added failing tests for #10650 .
3 years ago
Tom Edwards
86324dca77
Convert Text properties to StyledProperty
3 years ago
robloo
cc7656eecb
Rename ContextMenu.PlacementMode to ContextMenu.Placement
3 years ago
robloo
2eb04c2719
Rename Popup.PlacementMode to Popup.Placement
3 years ago
Steven Kirk
0a653b95c8
Use correct window chrome elements.
3 years ago
Steven Kirk
4c9bf8e53a
Fix platform fact/theory attributes.
Throwing on `Skip` setter was causing all subsequent tests in class to be ignored.
3 years ago
Steven Kirk
e378bce4ee
Nullable fixes.
3 years ago
Steven Kirk
7005333bc5
Don't get all window buttons when only one needed.
3 years ago
Steven Kirk
2cce1d4d78
Look up chrome buttons by a11y id.
XPath is slower, and unnecessary here.
3 years ago
Steven Kirk
d46eb22f4e
Don't use a tuple for window chrome buttons.
Return a record so that we can add extra elements more easily.
3 years ago
Steven Kirk
5d47043f5f
Fix expected test results.
3 years ago
Steven Kirk
ed7ee5cf39
Add Visual.GetTransformedBounds extension method.
Fixes #9569 .
3 years ago
Benedikt Stebner
beb57b646c
Fix test font typeface loading
3 years ago
Benedikt Stebner
37168e21bb
Use EnterScope
3 years ago
Benedikt Stebner
7b8f7dbfce
Normalize family names to upper case
3 years ago
Steven Kirk
f8eceb4af9
Update usages of ItemsControl Items/ItemsSource.
- Use `ItemsSource` when appropriate
- When `Items` is appropriate, don't use the setter
3 years ago
Steven Kirk
183fed8985
Add more tests.
One failing.
3 years ago
Steven Kirk
9856711494
Don't modify logical tree in ItemsSource mode.
3 years ago
Steven Kirk
ba7e8a20b5
Added ItemsControl.ItemsSource.
`ItemsControl` now works more like WPF, in that there are separate `Items` and `ItemsSource` properties. For backwards compatibility `Items` can still be set, though the setter is deprecated. `Items` needed to be changed from `IEnumerable` to `IList` though.
3 years ago
Giuseppe Lippolis
3f306b48ab
fix(DrawingContext): CS0618 PushPreTransform(Matrix)' is obsolete: 'Use PushTransform'
```bash
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' Avalonia.Direct2D1.RenderTests, Avalonia.Skia.RenderTests .\tests\Avalonia.RenderTests\Media\ConicGradientBrushTests.cs 203 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' Avalonia.Direct2D1.RenderTests, Avalonia.Skia.RenderTests .\tests\Avalonia.RenderTests\Media\LinearGradientBrushTests.cs 98 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' Avalonia.Direct2D1.RenderTests, Avalonia.Skia.RenderTests .\tests\Avalonia.RenderTests\Media\RadialGradientBrushTests.cs 188 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' Avalonia.Direct2D1.RenderTests, Avalonia.Skia.RenderTests .\tests\Avalonia.RenderTests\Media\TextFormatting\TextLayoutTests.cs 315 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' Avalonia.Skia.UnitTests .\tests\Avalonia.Skia.UnitTests\Media\TextFormatting\TextFormatterTests.cs 795 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' ControlCatalog (netstandard2.0) .\samples\ControlCatalog\Pages\CustomDrawingExampleControl.cs 136 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' ControlCatalog (netstandard2.0) .\samples\ControlCatalog\Pages\CustomDrawingExampleControl.cs 140 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' ControlCatalog (netstandard2.0) .\samples\ControlCatalog\Pages\CustomDrawingExampleControl.cs 144 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' ControlCatalog (netstandard2.0) .\samples\ControlCatalog\Pages\CustomDrawingExampleControl.cs 146 Active
Warning CS0618 'DrawingContext.PushPostTransform(Matrix)' is obsolete: 'Use PushTransform' RenderDemo .\samples\RenderDemo\Pages\RenderTargetBitmapPage.cs 32 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' Avalonia.Base (net6.0), Avalonia.Base (netstandard2.0) .\src\Avalonia.Base\Media\DrawingGroup.cs 76 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' Avalonia.Direct2D1.RenderTests, Avalonia.Skia.RenderTests .\tests\Avalonia.RenderTests\Controls\CustomRenderTests.cs 91 Active
Warning CS0618 'DrawingContext.PushPreTransform(Matrix)' is obsolete: 'Use PushTransform' Avalonia.Direct2D1.RenderTests, Avalonia.Skia.RenderTests .\tests\Avalonia.RenderTests\Controls\CustomRenderTests.cs 115 Active
```
3 years ago
Benedikt Stebner
ef2a47bc95
Only try to create embedded font collection for valid assets location
3 years ago
Tom Edwards
3b57b3496a
Added GenerateTypeSafeMetadata to property metadata
This method is used to strip coercion methods out of StyledPropertyMetadata when applying it to a new owner.
Also fixed AvaloniaProperty.(IPropertyInfo.CanSet) returning true for read-only properties
3 years ago
Dariusz Komosinski
d9d208b935
Add benchmark for Or selector and avoid extra virtual calls getting list count.
3 years ago
Dan Walmsley
a577ee6399
add a delay when closing child windows.
3 years ago
Dan Walmsley
2b076322e5
check access before clearing job queue.
3 years ago
Dan Walmsley
b2723d84be
Revert "try and catch issue with test."
This reverts commit 1d6fb2d960 .
3 years ago
Dan Walmsley
a298ff55f9
clear dispatcher queue at the end of tests.
3 years ago
Dan Walmsley
1d6fb2d960
try and catch issue with test.
3 years ago
Dan Walmsley
4d343293c8
fix test on windows.
3 years ago
Dan Walmsley
ac9b06ef66
make integration tests intel compatible
3 years ago
Dan Walmsley
c634f11def
really really fix the test.
3 years ago
Dan Walmsley
3ec8888b5d
actually fix the test.
3 years ago
Dan Walmsley
4203bae16d
fix test.
3 years ago
Steven Kirk
16efee95ca
Disambiguate ShowWindowTest controls.
Under the appium-mac2-driver, `FindElementByAccessibilityId` doesn't actually find elements by their accessibility ID, it also finds them by their accessibility name. Since #10531 added an automation peer for `Label` which sets the accessibility name, the wrong control was being located (e.g. it located the "Position" label instead of the `Name="Position"` text box).
Disambiguate these controls by adding a `Current` prefix to make integration tests pass again.
3 years ago
Daniil Pavliuchyk
ddb9669c11
Add ScrollBarAutomationPeer
3 years ago
Dan Walmsley
f2bceb40c9
add an integration test.
3 years ago
Tom Edwards
f36cf7e3ba
Converted several "dataValidation" properties to StyledProperty
Changed Button.IsPressed to a read-only DirectProperty
3 years ago
Tom Edwards
81530c4231
Converted a variety of writeable DirectProperty definitions to StyledProperty
3 years ago
Dan Walmsley
39126b9a8c
skip flaky test on macos.
3 years ago
Benedikt Stebner
9016933085
Fix some unit tests
3 years ago
Benedikt Stebner
147db08f90
Introduce GlyphRun.Bounds
3 years ago
Benedikt Stebner
f07e5de661
Make sure ItemsRepeater is loaded for XAML tests
3 years ago
Benedikt Stebner
48a54d67d3
Use test font family for TextLayoutTests
3 years ago
Benedikt Stebner
2364c5d140
Try to find a fallback glyph typeface for unknown font families
3 years ago
Steven Kirk
8b5114357f
Skip flaky test.
3 years ago