[gtk+] tests: Declare previously invalid CSS as valid now



commit d314709af6de2145f6a20c602354dfc318812e8e
Author: Benjamin Otte <otte redhat com>
Date:   Wed Jul 20 12:02:00 2011 +0200

    tests: Declare previously invalid CSS as valid now
    
    The CSS is valid, it might just not work (though most of it will for
    siblings).

 gtk/tests/stylecontext.c |   20 --------------------
 1 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/gtk/tests/stylecontext.c b/gtk/tests/stylecontext.c
index 2849180..b107515 100644
--- a/gtk/tests/stylecontext.c
+++ b/gtk/tests/stylecontext.c
@@ -41,13 +41,6 @@ test_parse_selectors (void)
     "E, F /* comment here */ {}",
     "E,/* comment here */ F {}",
     "E1.e1_2 #T3_4 {}",
-    NULL
-  };
-
-  const gchar *invalid[] = {
-    /* nth-child and similar pseudo classes can only
-     * be used with regions, not with types
-     */
     "E:first-child {}",
     "E:last-child {}",
     "E:nth-child(first) {}",
@@ -55,9 +48,6 @@ test_parse_selectors (void)
     "E:nth-child(even) {}",
     "E:nth-child(odd) {}",
     "E:sorted {}",
-    /* widget state pseudo-classes can only be used for
-     * the last element
-     */
     "E:focused tab {}",
      NULL
   };
@@ -74,16 +64,6 @@ test_parse_selectors (void)
 
       g_object_unref (provider);
    }
-
-  for (i = 0; invalid[i]; i++)
-    {
-      provider = gtk_css_provider_new ();
-      res = gtk_css_provider_load_from_data (provider, invalid[i], -1, &error);
-      g_assert_error (error, GTK_CSS_PROVIDER_ERROR, GTK_CSS_PROVIDER_ERROR_FAILED);
-      g_assert (!res);
-      g_object_unref (provider);
-      g_clear_error (&error);
-   }
 }
 
 static void



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