[gtk/wip/otte/css: 42/66] testsuite: Handle warnings in CSS tests



commit d1b85f4f375bff8b158e39524f83412e31f2886f
Author: Benjamin Otte <otte redhat com>
Date:   Tue Apr 9 06:37:32 2019 +0200

    testsuite: Handle warnings in CSS tests

 testsuite/css/parser/test-css-parser.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/testsuite/css/parser/test-css-parser.c b/testsuite/css/parser/test-css-parser.c
index 311243d369..4fa1281014 100644
--- a/testsuite/css/parser/test-css-parser.c
+++ b/testsuite/css/parser/test-css-parser.c
@@ -151,7 +151,9 @@ parsing_error_cb (GtkCssProvider *provider,
   g_free (basename);
 
   if (error->domain == GTK_CSS_PARSER_ERROR)
-      append_error_value (errors, GTK_TYPE_CSS_PARSER_ERROR, error->code);
+    append_error_value (errors, GTK_TYPE_CSS_PARSER_ERROR, error->code);
+  else if (error->domain == GTK_CSS_PARSER_WARNING)
+    append_error_value (errors, GTK_TYPE_CSS_PARSER_WARNING, error->code);
   else
     g_string_append_printf (errors, 
                             "%s %u\n",


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