[gtk/wip/chergert/4575-fix-texthistory-selection: 1/4] testsuite: ignore texthistory selection on delete/backspace




commit 22b1abb36dcd159249906e3c264c5c329a430244
Author: Christian Hergert <chergert redhat com>
Date:   Sun Dec 26 12:43:22 2021 -0800

    testsuite: ignore texthistory selection on delete/backspace
    
    We don't need to apply these here, as it will clear the selection which is
    needed for the undo. Otherwise we won't be able to test that we end up at
    the right selection afterwards.

 testsuite/gtk/texthistory.c | 4 ----
 1 file changed, 4 deletions(-)
---
diff --git a/testsuite/gtk/texthistory.c b/testsuite/gtk/texthistory.c
index a740d3523b..4da0dc5ab0 100644
--- a/testsuite/gtk/texthistory.c
+++ b/testsuite/gtk/texthistory.c
@@ -251,8 +251,6 @@ run_test (const Command *commands,
             set_selection (text, cmd->location, cmd->end_location);
           else if (strlen (cmd->text) == 1)
             set_selection (text, cmd->location, -1);
-          else
-            set_selection (text, -1, -1);
           command_delete_key (cmd, text);
           break;
 
@@ -261,8 +259,6 @@ run_test (const Command *commands,
             set_selection (text, cmd->location, cmd->end_location);
           else if (strlen (cmd->text) == 1)
             set_selection (text, cmd->end_location, -1);
-          else
-            set_selection (text, -1, -1);
           command_delete_key (cmd, text);
           break;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]