[gtk+] Add explanation to failing test
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Add explanation to failing test
- Date: Sat, 4 Dec 2010 15:25:57 +0000 (UTC)
commit 587c08a15105220a1bcf0cebf2d341c0a8fca071
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Nov 26 02:35:38 2010 -0500
Add explanation to failing test
gtk/tests/stylecontext.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gtk/tests/stylecontext.c b/gtk/tests/stylecontext.c
index c20203e..20b7dad 100644
--- a/gtk/tests/stylecontext.c
+++ b/gtk/tests/stylecontext.c
@@ -483,6 +483,14 @@ test_style_property (void)
gtk_widget_path_free (path);
gtk_style_context_set_state (context, GTK_STATE_FLAG_PRELIGHT);
+ /* Since we set the prelight state on the context, we expect
+ * only the third selector to match, even though the second one
+ * has higher specificity, and the fourth one comes later.
+ *
+ * In particular, we want to verify that widget style properties and
+ * CSS properties follow the same matching rules, ie we expect
+ * color to be #003 and child-displacement-x to be 3.
+ */
data = "GtkButton:insensitive { color: #001; -GtkButton-child-displacement-x: 1 }\n"
"GtkBox GtkButton:selected { color: #002; -GtkButton-child-displacement-x: 2 }\n"
"GtkButton:prelight { color: #003; -GtkButton-child-displacement-x: 3 }\n"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]