mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-07-10 10:48:33 +00:00
removing properties
This commit is contained in:
@@ -94,16 +94,6 @@ namespace ElectronNET.IntegrationTests.Tests
|
||||
ok.Should().Be(2.0);
|
||||
}
|
||||
|
||||
[Fact(Timeout = 20000)]
|
||||
public async Task ZoomFactorProperty_check()
|
||||
{
|
||||
var ok = fx.MainWindow.WebContents.ZoomFactor;
|
||||
ok.Should().Be(1.0);
|
||||
fx.MainWindow.WebContents.ZoomFactor = 2.0;
|
||||
ok = fx.MainWindow.WebContents.ZoomFactor;
|
||||
ok.Should().Be(2.0);
|
||||
}
|
||||
|
||||
[SkippableFact(Timeout = 20000)]
|
||||
public async Task GetSetZoomLevel_check()
|
||||
{
|
||||
@@ -117,16 +107,6 @@ namespace ElectronNET.IntegrationTests.Tests
|
||||
ok.Should().Be(2);
|
||||
}
|
||||
|
||||
[Fact(Timeout = 20000)]
|
||||
public async Task ZoomLevelProperty_check()
|
||||
{
|
||||
var ok = fx.MainWindow.WebContents.ZoomLevel;
|
||||
ok.Should().Be(0);
|
||||
fx.MainWindow.WebContents.ZoomLevel = 2;
|
||||
ok = fx.MainWindow.WebContents.ZoomLevel;
|
||||
ok.Should().Be(2);
|
||||
}
|
||||
|
||||
[SkippableFact(Timeout = 20000)]
|
||||
public async Task DevTools_check()
|
||||
{
|
||||
@@ -161,15 +141,6 @@ namespace ElectronNET.IntegrationTests.Tests
|
||||
ok.Should().BeFalse();
|
||||
}
|
||||
|
||||
[SkippableFact(Timeout = 20000)]
|
||||
public async Task AudioMutedProperty_check()
|
||||
{
|
||||
Skip.If(Environment.GetEnvironmentVariable("GITHUB_RUN_ID") != null && RuntimeInformation.IsOSPlatform(OSPlatform.Windows), "Skipping test on Windows CI.");
|
||||
fx.MainWindow.WebContents.AudioMuted.Should().BeFalse();
|
||||
fx.MainWindow.WebContents.AudioMuted = true;
|
||||
fx.MainWindow.WebContents.AudioMuted.Should().BeTrue();
|
||||
}
|
||||
|
||||
[SkippableFact(Timeout = 20000)]
|
||||
public async Task GetSetUserAgent_check()
|
||||
{
|
||||
@@ -182,14 +153,5 @@ namespace ElectronNET.IntegrationTests.Tests
|
||||
ok.Should().Be("MyUserAgent/1.0");
|
||||
}
|
||||
|
||||
[SkippableFact(Timeout = 20000)]
|
||||
public async Task UserAgentProperty_check()
|
||||
{
|
||||
Skip.If(Environment.GetEnvironmentVariable("GITHUB_RUN_ID") != null && RuntimeInformation.IsOSPlatform(OSPlatform.Windows), "Skipping test on Windows CI.");
|
||||
fx.MainWindow.WebContents.UserAgent.Should().NotBeNullOrEmpty();
|
||||
fx.MainWindow.WebContents.UserAgent = "MyUserAgent/1.0";
|
||||
fx.MainWindow.WebContents.UserAgent.Should().Be("MyUserAgent/1.0");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user