summaryrefslogtreecommitdiff
path: root/testsuite/css
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-12-28 23:26:50 -0500
committerMatthias Clasen <mclasen@redhat.com>2016-01-03 09:19:31 -0500
commited5ebc071179efa449a606b07683b6f8a628ac0d (patch)
treece0688c25ce0295f84d06a4668725b419b76eb3c /testsuite/css
parent33be60b0ab53b62d53e10a8334c7ad7d22ad6370 (diff)
downloadgtk+-ed5ebc071179efa449a606b07683b6f8a628ac0d.tar.gz
Add a css style test for currentColor
Diffstat (limited to 'testsuite/css')
-rw-r--r--testsuite/css/style/Makefile.am7
-rw-r--r--testsuite/css/style/currentcolor.css9
-rw-r--r--testsuite/css/style/currentcolor.nodes7
-rw-r--r--testsuite/css/style/currentcolor.ui19
4 files changed, 39 insertions, 3 deletions
diff --git a/testsuite/css/style/Makefile.am b/testsuite/css/style/Makefile.am
index d589a87681..7a2c875d62 100644
--- a/testsuite/css/style/Makefile.am
+++ b/testsuite/css/style/Makefile.am
@@ -25,9 +25,10 @@ test_css_style_SOURCES = \
test-css-style.c
test_data = \
- inherit.ui inherit.css inherit.nodes \
- label.ui label.css label.nodes \
- nth-child.ui nth-child.css nth-child.nodes \
+ currentcolor.ui currentcolor.css currentcolor.nodes \
+ inherit.ui inherit.css inherit.nodes \
+ label.ui label.css label.nodes \
+ nth-child.ui nth-child.css nth-child.nodes \
$(NULL)
EXTRA_DIST += $(test_in_files) $(test_data)
diff --git a/testsuite/css/style/currentcolor.css b/testsuite/css/style/currentcolor.css
new file mode 100644
index 0000000000..6c8bbdedd1
--- /dev/null
+++ b/testsuite/css/style/currentcolor.css
@@ -0,0 +1,9 @@
+@import "reset-to-defaults.css";
+
+box {
+ color: red;
+}
+
+label {
+ background-color: currentColor;
+}
diff --git a/testsuite/css/style/currentcolor.nodes b/testsuite/css/style/currentcolor.nodes
new file mode 100644
index 0000000000..36737782cf
--- /dev/null
+++ b/testsuite/css/style/currentcolor.nodes
@@ -0,0 +1,7 @@
+window visible=0 state=dir-ltr classes=background
+ decoration visible=1 state=dir-ltr
+ box visible=1 state=dir-ltr classes=horizontal
+ color: rgb(255,0,0) (currentcolor.css:4:12)
+ label visible=1 state=dir-ltr
+ color: rgb(255,0,0) (reset-to-defaults.css:2:12)
+ background-color: rgb(255,0,0) (currentcolor.css:8:32)
diff --git a/testsuite/css/style/currentcolor.ui b/testsuite/css/style/currentcolor.ui
new file mode 100644
index 0000000000..f1b397c08c
--- /dev/null
+++ b/testsuite/css/style/currentcolor.ui
@@ -0,0 +1,19 @@
+<?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>
+ </object>
+ </child>
+ </object>
+</interface>