diff options
author | Benjamin Otte <otte@redhat.com> | 2012-05-30 11:33:27 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2012-05-30 12:16:11 -0400 |
commit | 3a8cec5f171c685fe5d4328842e9d0f053638c62 (patch) | |
tree | 1d1448a2aa5bd4015829e9707868802a7d1b5f6b /tests/reftests | |
parent | b3f2583a463f82821b1a87c2d2f020375bc5ac0c (diff) | |
download | gtk+-3a8cec5f171c685fe5d4328842e9d0f053638c62.tar.gz |
reftests: Add a simple reftest for background-position
This is mostly to ensure that the background-positioning feature keeps
working and to demonstrate it.
https://bugzilla.gnome.org/show_bug.cgi?id=677109
Diffstat (limited to 'tests/reftests')
-rw-r--r-- | tests/reftests/Makefile.am | 3 | ||||
-rw-r--r-- | tests/reftests/background-position-simple.css | 13 | ||||
-rw-r--r-- | tests/reftests/background-position-simple.ref.ui | 14 | ||||
-rw-r--r-- | tests/reftests/background-position-simple.ui | 13 |
4 files changed, 43 insertions, 0 deletions
diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am index 30eb1d09ef..59e9e294c7 100644 --- a/tests/reftests/Makefile.am +++ b/tests/reftests/Makefile.am @@ -43,6 +43,9 @@ EXTRA_DIST += \ background-position.css \ background-position.ref.ui \ background-position.ui \ + background-position-simple.css \ + background-position-simple.ref.ui \ + background-position-simple.ui \ background-size.css \ background-size.ref.ui \ background-size.ui \ diff --git a/tests/reftests/background-position-simple.css b/tests/reftests/background-position-simple.css new file mode 100644 index 0000000000..f3a020c3f4 --- /dev/null +++ b/tests/reftests/background-position-simple.css @@ -0,0 +1,13 @@ +@import url("reset-to-defaults.css"); + +* { + background-image: linear-gradient(red, blue, red); + background-size: 20px 20px; + background-position: 50%; +} + +#reference { + background-image: linear-gradient(blue, red, blue, red, blue); + background-size: initial; + background-position: initial; +} diff --git a/tests/reftests/background-position-simple.ref.ui b/tests/reftests/background-position-simple.ref.ui new file mode 100644 index 0000000000..a3367df249 --- /dev/null +++ b/tests/reftests/background-position-simple.ref.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="name">reference</property> + <property name="width_request">40</property> + <property name="height_request">40</property> + <property name="can_focus">False</property> + <property name="type">popup</property> + <child> + <placeholder/> + </child> + </object> +</interface> diff --git a/tests/reftests/background-position-simple.ui b/tests/reftests/background-position-simple.ui new file mode 100644 index 0000000000..27849e15e4 --- /dev/null +++ b/tests/reftests/background-position-simple.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">40</property> + <property name="height_request">40</property> + <property name="can_focus">False</property> + <property name="type">popup</property> + <child> + <placeholder/> + </child> + </object> +</interface> |