[perl-Gtk3] Fix a test failure with Gtk3::Widget::render_icon
- From: Torsten Schönfeld <tsch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [perl-Gtk3] Fix a test failure with Gtk3::Widget::render_icon
- Date: Tue, 30 Dec 2014 19:56:03 +0000 (UTC)
commit b732e973f80b9f519c126ba7d193b1592a69eb4a
Author: Torsten Schönfeld <kaffeetisch gmx de>
Date: Tue Dec 30 20:55:49 2014 +0100
Fix a test failure with Gtk3::Widget::render_icon
t/overrides.t | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/t/overrides.t b/t/overrides.t
index 4caa369..041e0aa 100644
--- a/t/overrides.t
+++ b/t/overrides.t
@@ -534,10 +534,12 @@ __EOD__
}
note('Gtk3::Widget');
-{
+SKIP: {
my $widget = Gtk3::Label->new ("Test");
- isa_ok ($widget->render_icon ("gtk-open", "menu", "detail"),
- "Gtk3::Gdk::Pixbuf");
+ my $pixbuf = $widget->render_icon ("gtk-open", "menu", "detail");
+ skip "pixbuf test; undef returned", 1
+ unless defined $pixbuf;
+ isa_ok ($pixbuf, "Gtk3::Gdk::Pixbuf");
}
SKIP: {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]