[atk/gnome-3-8] tests: Fix logic when testing for empty state set



commit 9af9e6edda08d38f0e39daab470c8e1b3ec0f84c
Author: John E <johne53 tiscali co uk>
Date:   Wed Mar 27 15:46:15 2013 +0100

    tests: Fix logic when testing for empty state set
    
    https://bugzilla.gnome.org/show_bug.cgi?id=696466

 tests/teststateset.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/teststateset.c b/tests/teststateset.c
index 27c15a9..f2cb1d4 100644
--- a/tests/teststateset.c
+++ b/tests/teststateset.c
@@ -34,7 +34,7 @@ test_state_set (void)
   state_set1 = atk_state_set_new ();
 
   b_val = atk_state_set_is_empty (state_set1);  
-  if (b_val)
+  if (!b_val)
   {
     g_print ("New state set is not empty\n");
     return FALSE;
@@ -48,7 +48,7 @@ test_state_set (void)
   }
 
   b_val = atk_state_set_is_empty (state_set1);  
-  if (!b_val)
+  if (b_val)
   {
     g_print ("New state set is empty when it should not be\n");
     return FALSE;


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