Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test case for WebBrowserBase #10755

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,14 @@ bool action(Keys actualKeyData)
Assert.False(control.IsHandleCreated);
}

[WinFormsFact]
public void WebBrowserBase_UseWaitCursor_ThrowsNotSupportedException()
{
using SubWebBrowserBase control = new("8856f961-340a-11d0-a96b-00c04fd705a2");
SimonZhao888 marked this conversation as resolved.
Show resolved Hide resolved
Assert.False(control.UseWaitCursor);
Assert.Throws<NotSupportedException>(() => control.UseWaitCursor = true);
}

private class CustomProcessControl : Control
{
public Func<Message, Keys, bool> ProcessCmdKeyAction { get; set; }
Expand Down
Loading