[gtk/matthiasc/css-change-tracking-4: 8/11] Add another testcase for change flags
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/css-change-tracking-4: 8/11] Add another testcase for change flags
- Date: Fri, 17 Jan 2020 05:19:29 +0000 (UTC)
commit 7715e0aee5bbc1f5e6c67e1f304eeee1171b3948
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jan 16 23:05:28 2020 -0500
Add another testcase for change flags
This one shows cases where I think the superset matcher
should be more precise and not include these selectors,
since the node tree can't actually match them.
testsuite/css/change/meson.build | 1 +
testsuite/css/change/test5.css | 17 +++++++++++++++++
testsuite/css/change/test5.nodes | 4 ++++
testsuite/css/change/test5.ui | 18 ++++++++++++++++++
4 files changed, 40 insertions(+)
---
diff --git a/testsuite/css/change/meson.build b/testsuite/css/change/meson.build
index 66ae578fdb..59a2562710 100644
--- a/testsuite/css/change/meson.build
+++ b/testsuite/css/change/meson.build
@@ -24,6 +24,7 @@ test_data = [
'test2.css', 'test2.ui', 'test2.nodes',
'test3.css', 'test3.ui', 'test3.nodes',
'test4.css', 'test4.ui', 'test4.nodes',
+ 'test5.css', 'test5.ui', 'test5.nodes',
]
if get_option('install-tests')
diff --git a/testsuite/css/change/test5.css b/testsuite/css/change/test5.css
new file mode 100644
index 0000000000..432f7dc128
--- /dev/null
+++ b/testsuite/css/change/test5.css
@@ -0,0 +1,17 @@
+/* test negations */
+
+box {
+ color: red;
+}
+
+g:hover label {
+ color: red;
+}
+
+:not(.a):backdrop label {
+ color: red;
+}
+
+:not(box):selected label {
+ color: red;
+}
diff --git a/testsuite/css/change/test5.nodes b/testsuite/css/change/test5.nodes
new file mode 100644
index 0000000000..45c99aa97a
--- /dev/null
+++ b/testsuite/css/change/test5.nodes
@@ -0,0 +1,4 @@
+[window.background:dir(ltr)]
+ decoration:dir(ltr)
+ box.horizontal.a:dir(ltr) name
+ label.b:dir(ltr) name|parent-class|parent-name|parent-hover|parent-backdrop|parent-selected
diff --git a/testsuite/css/change/test5.ui b/testsuite/css/change/test5.ui
new file mode 100644
index 0000000000..47f3941f08
--- /dev/null
+++ b/testsuite/css/change/test5.ui
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <!-- interface-requires gtk+ 3.0 -->
+ <object class="GtkWindow" id="window1">
+ <property name="can_focus">False</property>
+ <property name="type">popup</property>
+ <child>
+ <object class="GtkBox">
+ <style><class name="a"/></style>
+ <child>
+ <object class="GtkLabel">
+ <style><class name="b"/></style>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]