[gtk+] reftests: Add a test for specificity of @import
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] reftests: Add a test for specificity of @import
- Date: Thu, 15 Mar 2012 02:32:06 +0000 (UTC)
commit 72a308abee5959daabe24853b7623e6bd6de651a
Author: Benjamin Otte <otte redhat com>
Date: Tue Mar 13 21:20:32 2012 +0100
reftests: Add a test for specificity of @import
tests/reftests/Makefile.am | 4 ++++
tests/reftests/css-match-import-import.css | 7 +++++++
tests/reftests/css-match-import.css | 9 +++++++++
tests/reftests/css-match-import.ref.ui | 16 ++++++++++++++++
tests/reftests/css-match-import.ui | 15 +++++++++++++++
5 files changed, 51 insertions(+), 0 deletions(-)
---
diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am
index 9479067..5d9f4a7 100644
--- a/tests/reftests/Makefile.am
+++ b/tests/reftests/Makefile.am
@@ -96,6 +96,10 @@ EXTRA_DIST += \
css-match-exact.css \
css-match-exact.ref.ui \
css-match-exact.ui \
+ css-match-import.css \
+ css-match-import-import.css \
+ css-match-import.ui \
+ css-match-import.ref.ui \
css-match-inherit.css \
css-match-inherit.ref.ui \
css-match-inherit.ui \
diff --git a/tests/reftests/css-match-import-import.css b/tests/reftests/css-match-import-import.css
new file mode 100644
index 0000000..a6239ee
--- /dev/null
+++ b/tests/reftests/css-match-import-import.css
@@ -0,0 +1,7 @@
+GtkLabel {
+ color: blue;
+}
+
+#reference {
+ color: purple;
+}
diff --git a/tests/reftests/css-match-import.css b/tests/reftests/css-match-import.css
new file mode 100644
index 0000000..a02915b
--- /dev/null
+++ b/tests/reftests/css-match-import.css
@@ -0,0 +1,9 @@
+ import url("css-match-import-import.css");
+
+GtkLabel {
+ color: purple;
+}
+
+#reference {
+ color: purple;
+}
diff --git a/tests/reftests/css-match-import.ref.ui b/tests/reftests/css-match-import.ref.ui
new file mode 100644
index 0000000..03877e3
--- /dev/null
+++ b/tests/reftests/css-match-import.ref.ui
@@ -0,0 +1,16 @@
+<?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="GtkLabel" id="label1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="name">purple</property>
+ <property name="label" translatable="yes">Purple</property>
+ </object>
+ </child>
+ </object>
+</interface>
diff --git a/tests/reftests/css-match-import.ui b/tests/reftests/css-match-import.ui
new file mode 100644
index 0000000..3a8f869
--- /dev/null
+++ b/tests/reftests/css-match-import.ui
@@ -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="GtkLabel" id="label1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Purple</property>
+ </object>
+ </child>
+ </object>
+</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]