[gtk/wip/otte/css: 202/225] testsuite: Handle warnings in CSS tests



commit b334ccb179f2c35b4dbcc8a4d3b1a94a4bed6d10
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]