From 609723b3c1cd8b70cead86b7e8bf7dfd58070adc Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 19 Feb 2013 14:15:32 +0100 Subject: [PATCH] tests: Add a test for loading images from file Strictly, this belongs in gdk-pixbuf, but GtkImage should have this working, too. https://bugzilla.gnome.org/show_bug.cgi?id=694148 --- tests/reftests/Makefile.am | 3 +++ tests/reftests/image-load-from-file.css | 3 +++ tests/reftests/image-load-from-file.ref.ui | 17 +++++++++++++++++ tests/reftests/image-load-from-file.ui | 15 +++++++++++++++ 4 files changed, 38 insertions(+) create mode 100644 tests/reftests/image-load-from-file.css create mode 100644 tests/reftests/image-load-from-file.ref.ui create mode 100644 tests/reftests/image-load-from-file.ui diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am index 3879a2d8a4..c9ab2e4a4f 100644 --- a/tests/reftests/Makefile.am +++ b/tests/reftests/Makefile.am @@ -176,6 +176,9 @@ EXTRA_DIST += \ iconview-empty.css \ iconview-empty.ui \ iconview-empty.ref.ui \ + image-load-from-file.css \ + image-load-from-file.ref.ui \ + image-load-from-file.ui \ info-bar-message-types.css \ info-bar-message-types.ref.ui \ info-bar-message-types.ui \ diff --git a/tests/reftests/image-load-from-file.css b/tests/reftests/image-load-from-file.css new file mode 100644 index 0000000000..9b4ac8ed03 --- /dev/null +++ b/tests/reftests/image-load-from-file.css @@ -0,0 +1,3 @@ +#reference { + background: lime; +} diff --git a/tests/reftests/image-load-from-file.ref.ui b/tests/reftests/image-load-from-file.ref.ui new file mode 100644 index 0000000000..02d22c0098 --- /dev/null +++ b/tests/reftests/image-load-from-file.ref.ui @@ -0,0 +1,17 @@ + + + + + False + popup + + + True + False + 20 + 20 + reference + + + + diff --git a/tests/reftests/image-load-from-file.ui b/tests/reftests/image-load-from-file.ui new file mode 100644 index 0000000000..1f06d162d8 --- /dev/null +++ b/tests/reftests/image-load-from-file.ui @@ -0,0 +1,15 @@ + + + + + False + popup + + + True + False + green-20x20.png + + + +