[gtk+] reftests: add a reftest for repeating/positioned background patterns



commit bce34d80d40c16190cd4581141df2b58d3fe083d
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed May 30 11:30:02 2012 -0400

    reftests: add a reftest for repeating/positioned background patterns
    
    This currently fails.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677109

 tests/reftests/Makefile.am                       |    4 ++++
 tests/reftests/background-position-repeat-bg.png |  Bin 0 -> 193 bytes
 tests/reftests/background-position-repeat.css    |   13 +++++++++++++
 tests/reftests/background-position-repeat.ref.ui |   20 ++++++++++++++++++++
 tests/reftests/background-position-repeat.ui     |   20 ++++++++++++++++++++
 5 files changed, 57 insertions(+), 0 deletions(-)
---
diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am
index 59e9e29..c3f3743 100644
--- a/tests/reftests/Makefile.am
+++ b/tests/reftests/Makefile.am
@@ -43,6 +43,10 @@ EXTRA_DIST += \
 	background-position.css \
 	background-position.ref.ui \
 	background-position.ui \
+	background-position-repeat.css \
+	background-position-repeat.ref.ui \
+	background-position-repeat.ui \
+	background-position-repeat-bg.png \
 	background-position-simple.css \
 	background-position-simple.ref.ui \
 	background-position-simple.ui \
diff --git a/tests/reftests/background-position-repeat-bg.png b/tests/reftests/background-position-repeat-bg.png
new file mode 100644
index 0000000..92d30b2
Binary files /dev/null and b/tests/reftests/background-position-repeat-bg.png differ
diff --git a/tests/reftests/background-position-repeat.css b/tests/reftests/background-position-repeat.css
new file mode 100644
index 0000000..a251bbb
--- /dev/null
+++ b/tests/reftests/background-position-repeat.css
@@ -0,0 +1,13 @@
+ import "reset-to-defaults.css";
+
+#button1_ref {
+    background-image: url("background-position-repeat-bg.png");
+}
+
+#button1 {
+    background-color: white;
+    background-image: linear-gradient(to right, red, red 1px);
+    background-size: 1px 1px;
+    background-repeat: repeat no-repeat;
+    background-position: left;
+}
diff --git a/tests/reftests/background-position-repeat.ref.ui b/tests/reftests/background-position-repeat.ref.ui
new file mode 100644
index 0000000..ef7502b
--- /dev/null
+++ b/tests/reftests/background-position-repeat.ref.ui
@@ -0,0 +1,20 @@
+<?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="GtkButton" id="button1_ref">
+        <property name="name">button1_ref</property>
+        <property name="use_action_appearance">False</property>
+        <property name="width_request">40</property>
+        <property name="height_request">41</property>
+        <property name="visible">True</property>
+        <property name="can_focus">True</property>
+        <property name="receives_default">True</property>
+        <property name="use_action_appearance">False</property>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/tests/reftests/background-position-repeat.ui b/tests/reftests/background-position-repeat.ui
new file mode 100644
index 0000000..e7b08d1
--- /dev/null
+++ b/tests/reftests/background-position-repeat.ui
@@ -0,0 +1,20 @@
+<?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="GtkButton" id="button1">
+        <property name="name">button1</property>
+        <property name="use_action_appearance">False</property>
+        <property name="width_request">40</property>
+        <property name="height_request">41</property>
+        <property name="visible">True</property>
+        <property name="can_focus">True</property>
+        <property name="receives_default">True</property>
+        <property name="use_action_appearance">False</property>
+      </object>
+    </child>
+  </object>
+</interface>



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