[gtk/wip/otte/css: 5/30] testsuite: Handle warnings in CSS tests



commit 66b4685152a0ded979ff52092b39864e4854a6ec
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]