Browse Source
Merge pull request #10202 from AvaloniaUI/fixes/macos-transparency-integration-test
Fix integration tests on macOS.
pull/10204/head
Steven Kirk
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
tests/Avalonia.IntegrationTests.Appium/WindowTests.cs
|
|
|
@ -202,7 +202,7 @@ namespace Avalonia.IntegrationTests.Appium |
|
|
|
window.Click(); |
|
|
|
|
|
|
|
var img = SixLabors.ImageSharp.Image.Load<Rgba32>(screenshot.AsByteArray); |
|
|
|
var topLeftColor = img[1, 1]; |
|
|
|
var topLeftColor = img[10, 10]; |
|
|
|
var centerColor = img[img.Width / 2, img.Height / 2]; |
|
|
|
|
|
|
|
Assert.Equal(new Rgba32(0, 128, 0), topLeftColor); |
|
|
|
@ -223,7 +223,7 @@ namespace Avalonia.IntegrationTests.Appium |
|
|
|
window.Click(); |
|
|
|
|
|
|
|
var img = SixLabors.ImageSharp.Image.Load<Rgba32>(screenshot.AsByteArray); |
|
|
|
var topLeftColor = img[1, 1]; |
|
|
|
var topLeftColor = img[10, 10]; |
|
|
|
var centerColor = img[img.Width / 2, img.Height / 2]; |
|
|
|
|
|
|
|
Assert.Equal(new Rgba32(0, 128, 0), topLeftColor); |
|
|
|
|