[gtk+] reftests: Add a reftest to check shorthands do work



commit 4d9283599710d38ac4312d6aff256dde31d19025
Author: Benjamin Otte <otte redhat com>
Date:   Sun May 22 04:46:42 2011 +0200

    reftests: Add a reftest to check shorthands do work
    
    Checks shorthands are properly unpacked in the CSS and that they indeed
    set all relevant properties. Or at least border-width does.

 tests/reftests/Makefile.am                   |    3 +++
 tests/reftests/shorthand-entry-border.css    |   21 +++++++++++++++++++++
 tests/reftests/shorthand-entry-border.ref.ui |   15 +++++++++++++++
 tests/reftests/shorthand-entry-border.ui     |   14 ++++++++++++++
 4 files changed, 53 insertions(+), 0 deletions(-)
---
diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am
index 106cbed..b76907d 100644
--- a/tests/reftests/Makefile.am
+++ b/tests/reftests/Makefile.am
@@ -91,6 +91,9 @@ EXTRA_DIST += \
 	quit-mnemonic.ui \
 	rotated-layout.ref.ui \
 	rotated-layout.ui \
+	shorthand-entry-border.css \
+	shorthand-entry-border.ref.ui \
+	shorthand-entry-border.ui \
 	simple.ref.ui \
 	simple.ui \
 	toplevel-vs-popup.ref.ui \
diff --git a/tests/reftests/shorthand-entry-border.css b/tests/reftests/shorthand-entry-border.css
new file mode 100644
index 0000000..eca547b
--- /dev/null
+++ b/tests/reftests/shorthand-entry-border.css
@@ -0,0 +1,21 @@
+* {
+  engine: none;
+  border-radius: 0;
+}
+
+GtkWidget {
+  border-right-width: 5;
+}
+
+GtkEntry {
+  border-width: 10 20;
+}
+
+.entry {
+  border-left-width: 10;
+  border-right-width: 10;
+}
+
+#reference {
+  border-width: 10;
+}
diff --git a/tests/reftests/shorthand-entry-border.ref.ui b/tests/reftests/shorthand-entry-border.ref.ui
new file mode 100644
index 0000000..ea181fe
--- /dev/null
+++ b/tests/reftests/shorthand-entry-border.ref.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="GtkEntry" id="entry1">
+        <property name="visible">True</property>
+        <property name="can_focus">True</property>
+        <property name="name">reference</property>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/tests/reftests/shorthand-entry-border.ui b/tests/reftests/shorthand-entry-border.ui
new file mode 100644
index 0000000..91ce522
--- /dev/null
+++ b/tests/reftests/shorthand-entry-border.ui
@@ -0,0 +1,14 @@
+<?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="GtkEntry" id="entry1">
+        <property name="visible">True</property>
+        <property name="can_focus">True</property>
+      </object>
+    </child>
+  </object>
+</interface>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]