[gtk+] reftests: Add reftest for unresolvable properties
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] reftests: Add reftest for unresolvable properties
- Date: Sat, 11 Jun 2011 08:45:06 +0000 (UTC)
commit a536a50dbd887b913ae584fadebbbf75a23449b2
Author: Benjamin Otte <otte redhat com>
Date: Sat Jun 11 10:41:17 2011 +0200
reftests: Add reftest for unresolvable properties
tests/reftests/Makefile.am | 5 ++++-
tests/reftests/unresolvable.css | 16 ++++++++++++++++
tests/reftests/unresolvable.ref.ui | 11 +++++++++++
tests/reftests/unresolvable.ui | 13 +++++++++++++
4 files changed, 44 insertions(+), 1 deletions(-)
---
diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am
index e0b6a0b..e632a04 100644
--- a/tests/reftests/Makefile.am
+++ b/tests/reftests/Makefile.am
@@ -137,4 +137,7 @@ EXTRA_DIST += \
simple.ref.ui \
simple.ui \
toplevel-vs-popup.ref.ui \
- toplevel-vs-popup.ui
+ toplevel-vs-popup.ui \
+ unresolvable.css \
+ unresolvable.ref.ui \
+ unresolvable.ui
diff --git a/tests/reftests/unresolvable.css b/tests/reftests/unresolvable.css
new file mode 100644
index 0000000..e7f908e
--- /dev/null
+++ b/tests/reftests/unresolvable.css
@@ -0,0 +1,16 @@
+GtkWindow {
+ engine: none;
+ background-image: none;
+ background-color: @doesntexist;
+ box-shadow: @nonexistant 5 5;
+ border-image: -gtk-gradient(linear,
+ left top, left bottom,
+ from(@notaavailable),
+ to(@whatever)) 2;
+}
+
+#reference {
+ background-color: pink;
+ box-shadow: none;
+ border-image: none;
+}
diff --git a/tests/reftests/unresolvable.ref.ui b/tests/reftests/unresolvable.ref.ui
new file mode 100644
index 0000000..973a68f
--- /dev/null
+++ b/tests/reftests/unresolvable.ref.ui
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <!-- interface-requires gtk+ 3.0 -->
+ <object class="GtkWindow" id="window1">
+ <property name="width_request">10</property>
+ <property name="height_request">10</property>
+ <property name="can_focus">False</property>
+ <property name="type">popup</property>
+ <property name="name">reference</property>
+ </object>
+</interface>
diff --git a/tests/reftests/unresolvable.ui b/tests/reftests/unresolvable.ui
new file mode 100644
index 0000000..2f24fa1
--- /dev/null
+++ b/tests/reftests/unresolvable.ui
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <!-- interface-requires gtk+ 3.0 -->
+ <object class="GtkWindow" id="window1">
+ <property name="width_request">10</property>
+ <property name="height_request">10</property>
+ <property name="can_focus">False</property>
+ <property name="type">popup</property>
+ <child>
+ <placeholder/>
+ </child>
+ </object>
+</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]