]> Pileus Git - ~andy/gtk/commitdiff
reftests: Add a test for matching by class
authorBenjamin Otte <otte@redhat.com>
Sat, 14 May 2011 23:28:17 +0000 (01:28 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 18 May 2011 20:17:56 +0000 (22:17 +0200)
tests/reftests/Makefile.am
tests/reftests/css-match-class.css [new file with mode: 0644]
tests/reftests/css-match-class.ref.ui [new file with mode: 0644]
tests/reftests/css-match-class.ui [new file with mode: 0644]

index 4fdc7dd3e6097fbfd6a9c9ba82be02a729d4a211..4e1e11cc4fe7026470b80de22199e8f3b7b831a5 100644 (file)
@@ -29,6 +29,9 @@ EXTRA_DIST += \
        box-packing.css \
        box-packing.ref.ui \
        box-packing.ui \
+       css-match-class.css \
+       css-match-class.ref.ui \
+       css-match-class.ui \
        css-match-name.css \
        css-match-name.ref.ui \
        css-match-name.ui \
diff --git a/tests/reftests/css-match-class.css b/tests/reftests/css-match-class.css
new file mode 100644 (file)
index 0000000..bff8647
--- /dev/null
@@ -0,0 +1,15 @@
+.window {
+  engine: none;
+  background-image: none;
+  background-color: green;
+  border-radius: 0;
+  border-style: none;
+}
+
+.notwindow {
+  background-color: red;
+}
+
+.window.notwindow {
+  background-color: blue;
+}
diff --git a/tests/reftests/css-match-class.ref.ui b/tests/reftests/css-match-class.ref.ui
new file mode 100644 (file)
index 0000000..d8d31c3
--- /dev/null
@@ -0,0 +1,15 @@
+<?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="GtkImage" id="image1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="pixbuf">green-20x20.png</property>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/tests/reftests/css-match-class.ui b/tests/reftests/css-match-class.ui
new file mode 100644 (file)
index 0000000..ee6db3a
--- /dev/null
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="width_request">20</property>
+    <property name="height_request">20</property>
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <property name="name">window</property>
+    <style>
+      <class name="window" />
+    </style>
+  </object>
+</interface>