[gtk/matthiasc/css-change-tracking-4] testsuite: Update expected test output
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/css-change-tracking-4] testsuite: Update expected test output
- Date: Fri, 17 Jan 2020 13:13:49 +0000 (UTC)
commit 9cdb5bf18c6eba48afeefcea3030597baad3aa78
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jan 17 00:16:44 2020 -0500
testsuite: Update expected test output
Several of the just added change flag tests were
using nonexisting or impossible ancestor names,
and thus are affected by the change to superset
matching.
testsuite/css/change/test1.css | 13 +++++++++++
testsuite/css/change/test1.nodes | 5 +++++
testsuite/css/change/test1.ui | 26 ++++++++++++++++++++++
testsuite/css/change/test2.css | 48 ++++++++++++++++++++--------------------
testsuite/css/change/test2.nodes | 2 +-
testsuite/css/change/test2.ui | 2 ++
testsuite/css/change/test4.css | 6 ++---
testsuite/css/change/test5.css | 2 +-
8 files changed, 75 insertions(+), 29 deletions(-)
---
diff --git a/testsuite/css/change/test1.css b/testsuite/css/change/test1.css
new file mode 100644
index 0000000000..9ffd3c7551
--- /dev/null
+++ b/testsuite/css/change/test1.css
@@ -0,0 +1,13 @@
+/* Just a basic test of the machinery */
+
+box {
+ color: red;
+}
+
+label {
+ color: green;
+}
+
+label.test2 {
+ color: blue;
+}
diff --git a/testsuite/css/change/test1.nodes b/testsuite/css/change/test1.nodes
new file mode 100644
index 0000000000..4cf52ec676
--- /dev/null
+++ b/testsuite/css/change/test1.nodes
@@ -0,0 +1,5 @@
+[window.background:dir(ltr)]
+ decoration:dir(ltr)
+ box.horizontal:dir(ltr) name
+ label:dir(ltr) name
+ label.test:dir(ltr) name
diff --git a/testsuite/css/change/test1.ui b/testsuite/css/change/test1.ui
new file mode 100644
index 0000000000..b5ddb9c1cf
--- /dev/null
+++ b/testsuite/css/change/test1.ui
@@ -0,0 +1,26 @@
+<?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">
+ <property name="visible">True</property>
+ <child>
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Hello World!</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Hello World!</property>
+ <style><class name="test"/></style>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>
diff --git a/testsuite/css/change/test2.css b/testsuite/css/change/test2.css
index 8fa68e444a..228f9537d2 100644
--- a/testsuite/css/change/test2.css
+++ b/testsuite/css/change/test2.css
@@ -1,7 +1,7 @@
/* trigger all change flags at least once */
box {
- color: red;
+ color: green;
}
label {
@@ -92,95 +92,95 @@ label:nth-last-child(2n+5) ~ label.t {
color: blue;
}
-label label.u {
+box label.u {
color: blue;
}
-#label label.u1 {
+#box label.u1 {
color: blue;
}
-label.test label.v {
+box.test label.v {
color: blue;
}
-label:focus label.w {
+box:focus label.w {
color: blue;
}
-label:hover label.x {
+box:hover label.x {
color: blue;
}
-label:disabled label.y {
+box:disabled label.y {
color: blue;
}
-label:backdrop label.z {
+box:backdrop label.z {
color: blue;
}
-label:selected label.aa {
+box:selected label.aa {
color: blue;
}
-label:first-child label.bb {
+box:first-child label.bb {
color: blue;
}
-label:last-child label.cc {
+box:last-child label.cc {
color: blue;
}
-label:nth-child(3) label.dd {
+box:nth-child(3) label.dd {
color: blue;
}
-label:nth-last-child(3) label.ee {
+box:nth-last-child(3) label.ee {
color: blue;
}
-label~label label.ff {
+box~box label.ff {
color: blue;
}
-#label~label label.gg {
+#box1~box label.gg {
color: blue;
}
-label.test~label label.hh {
+box.test~box label.hh {
color: blue;
}
-label:focus~label label.ii {
+box:focus~box label.ii {
color: blue;
}
-label:hover~label label.jj {
+box:hover~box label.jj {
color: blue;
}
-label:backdrop~label label.kk {
+box:backdrop~box label.kk {
color: blue;
}
-label:selected~label label.ll {
+box:selected~box label.ll {
color: blue;
}
-label:first-child~label label.mm {
+box:first-child~box label.mm {
color: blue;
}
-label:last-child~label label.nn {
+box:last-child~box label.nn {
color: blue;
}
-label:nth-child(2)~label label.oo {
+box:nth-child(2)~box label.oo {
color: blue;
}
-label:nth-last-child(2)~label label.pp {
+box:nth-last-child(2)~box label.pp {
color: blue;
}
diff --git a/testsuite/css/change/test2.nodes b/testsuite/css/change/test2.nodes
index ae80d2a6ca..e0da6cbcef 100644
--- a/testsuite/css/change/test2.nodes
+++ b/testsuite/css/change/test2.nodes
@@ -1,6 +1,6 @@
[window.background:dir(ltr)]
decoration:dir(ltr)
- box.horizontal:dir(ltr) name
+ box#box.horizontal.test:dir(ltr) name
label:dir(ltr) name
label.a:dir(ltr) class|name|disabled
label.b:dir(ltr) class|name|selected
diff --git a/testsuite/css/change/test2.ui b/testsuite/css/change/test2.ui
index 5407cef3e1..f679c5ac5d 100644
--- a/testsuite/css/change/test2.ui
+++ b/testsuite/css/change/test2.ui
@@ -5,6 +5,8 @@
<property name="type">popup</property>
<child>
<object class="GtkBox">
+ <property name="name">box</property>
+ <style><class name="test"/></style>
<child>
<object class="GtkLabel">
</object>
diff --git a/testsuite/css/change/test4.css b/testsuite/css/change/test4.css
index 7a6367dacb..425600637a 100644
--- a/testsuite/css/change/test4.css
+++ b/testsuite/css/change/test4.css
@@ -12,14 +12,14 @@ label.b:not(:hover):backdrop {
color: green;
}
-label:not(:hover) label.c {
+box:not(:hover) label.c {
color: green;
}
-label:not(:hover):backdrop label.d {
+box:not(:hover):backdrop label.d {
color: green;
}
-label:not(:hover):backdrop label.e:not(.f) {
+box:not(:hover):backdrop label.e:not(.f) {
color: green;
}
diff --git a/testsuite/css/change/test5.css b/testsuite/css/change/test5.css
index 432f7dc128..a4aa9002a4 100644
--- a/testsuite/css/change/test5.css
+++ b/testsuite/css/change/test5.css
@@ -4,7 +4,7 @@ box {
color: red;
}
-g:hover label {
+box:hover label {
color: red;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]