Accepted->Accepting

This commit is contained in:
Tig
2024-10-07 08:58:17 -04:00
parent 97684e4d64
commit 78d0a8fc3b
100 changed files with 308 additions and 308 deletions

View File

@@ -555,7 +555,7 @@ public class TextFieldTests (ITestOutputHelper output)
TextField tf = new ();
var acceptedCount = 0;
tf.Accepted += (sender, args) => acceptedCount++;
tf.Accepting += (sender, args) => acceptedCount++;
Application.Top = new ();
Application.Top.Add (tf);
@@ -818,7 +818,7 @@ public class TextFieldTests (ITestOutputHelper output)
{
var view = new TextField ();
var accepted = false;
view.Accepted += OnAccept;
view.Accepting += OnAccept;
view.InvokeCommand (Command.HotKey);
Assert.False (accepted);
@@ -834,7 +834,7 @@ public class TextFieldTests (ITestOutputHelper output)
var view = new TextField ();
var accepted = false;
view.Accepted += Accept;
view.Accepting += Accept;
view.InvokeCommand (Command.Accept);
Assert.True (accepted);
@@ -867,10 +867,10 @@ public class TextFieldTests (ITestOutputHelper output)
superView.Add (tf, button);
var buttonAccept = 0;
button.Accepted += ButtonAccept;
button.Accepting += ButtonAccept;
var textFieldAccept = 0;
tf.Accepted += TextFieldAccept;
tf.Accepting += TextFieldAccept;
tf.SetFocus ();
Assert.True (tf.HasFocus);
@@ -917,7 +917,7 @@ public class TextFieldTests (ITestOutputHelper output)
superView.Add (tf, button);
var buttonAccept = 0;
button.Accepted += ButtonAccept;
button.Accepting += ButtonAccept;
tf.SetFocus ();
Assert.True (tf.HasFocus);
@@ -946,13 +946,13 @@ public class TextFieldTests (ITestOutputHelper output)
var tfAcceptedInvoked = false;
var handle = false;
view.Accepted += TextViewAccept;
view.Accepting += TextViewAccept;
Assert.False (view.InvokeCommand (Command.Accept));
Assert.True (tfAcceptedInvoked);
tfAcceptedInvoked = false;
handle = true;
view.Accepted += TextViewAccept;
view.Accepting += TextViewAccept;
Assert.True (view.InvokeCommand (Command.Accept));
Assert.True (tfAcceptedInvoked);