[gtk+] reftest: Add reftest for scaled image borders - fails on GDK_SCALE=2



commit d08a12ae0bf5e22c67bbfa67daaa95d0588b80f4
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Jul 5 15:21:55 2013 +0200

    reftest: Add reftest for scaled image borders - fails on GDK_SCALE=2

 testsuite/reftests/border-image-url-scaled.css    |   30 +++++++++++++
 testsuite/reftests/border-image-url-scaled.ref.ui |   48 +++++++++++++++++++++
 testsuite/reftests/border-image-url-scaled.ui     |   22 +++++++++
 testsuite/reftests/border-rgb.png                 |  Bin 0 -> 218 bytes
 testsuite/reftests/border-rgb 2 png               |  Bin 0 -> 228 bytes
 5 files changed, 100 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/reftests/border-image-url-scaled.css b/testsuite/reftests/border-image-url-scaled.css
new file mode 100644
index 0000000..4e593b8
--- /dev/null
+++ b/testsuite/reftests/border-image-url-scaled.css
@@ -0,0 +1,30 @@
+ import "reset-to-defaults.css";
+
+.button-image {
+    border-image: -gtk-scaled(url("border-rgb.png"),url("border-rgb 2 png")) 3 stretch;
+
+
+  border-style: groove;
+  border-width: 3px 3px 3px 3px;
+}
+
+.button-not-image {
+  border-color: #ff0000;
+
+  border-style: solid;
+  border-width: 1px 1px 1px 1px;
+}
+
+.button-not-image2 {
+  border-color: #00ff00;
+
+  border-style: solid;
+  border-width: 1px 1px 1px 1px;
+}
+
+.button-not-image3 {
+  border-color: #0000ff;
+
+  border-style: solid;
+  border-width: 1px 1px 1px 1px;
+}
diff --git a/testsuite/reftests/border-image-url-scaled.ref.ui 
b/testsuite/reftests/border-image-url-scaled.ref.ui
new file mode 100644
index 0000000..2b61dad
--- /dev/null
+++ b/testsuite/reftests/border-image-url-scaled.ref.ui
@@ -0,0 +1,48 @@
+<?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">reference</property>
+        <property name="visible">True</property>
+        <property name="can_focus">True</property>
+        <property name="has_focus">True</property>
+        <property name="receives_default">True</property>
+        <property name="use_action_appearance">False</property>
+        <style>
+          <class name="button-not-image"/>
+        </style>
+        <child>
+          <object class="GtkButton" id="button2">
+            <property name="name">reference</property>
+            <property name="visible">True</property>
+            <property name="can_focus">True</property>
+            <property name="has_focus">True</property>
+            <property name="receives_default">True</property>
+            <property name="use_action_appearance">False</property>
+            <style>
+              <class name="button-not-image2"/>
+            </style>
+            <child>
+              <object class="GtkButton" id="button3">
+                <property name="name">reference</property>
+                <property name="label" translatable="yes">Hello World</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="has_focus">True</property>
+                <property name="receives_default">True</property>
+                <property name="use_action_appearance">False</property>
+                <style>
+                  <class name="button-not-image3"/>
+                </style>
+              </object>
+            </child>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/testsuite/reftests/border-image-url-scaled.ui b/testsuite/reftests/border-image-url-scaled.ui
new file mode 100644
index 0000000..eb275fd
--- /dev/null
+++ b/testsuite/reftests/border-image-url-scaled.ui
@@ -0,0 +1,22 @@
+<?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">reference</property>
+        <property name="label" translatable="yes">Hello World</property>
+        <property name="visible">True</property>
+        <property name="can_focus">True</property>
+        <property name="has_focus">True</property>
+        <property name="receives_default">True</property>
+        <property name="use_action_appearance">False</property>
+        <style>
+          <class name="button-image"/>
+        </style>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/testsuite/reftests/border-rgb.png b/testsuite/reftests/border-rgb.png
new file mode 100644
index 0000000..0b955a7
Binary files /dev/null and b/testsuite/reftests/border-rgb.png differ
diff --git a/testsuite/reftests/border-rgb 2 png b/testsuite/reftests/border-rgb 2 png
new file mode 100644
index 0000000..17a45f0
Binary files /dev/null and b/testsuite/reftests/border-rgb 2 png differ


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