[perl-Gtk2] Fix a test failure in t/GtkStatusIcon.t



commit e6fedbfad64d78a6c0a047040436467adc5f3622
Author: Torsten SchÃnfeld <kaffeetisch gmx de>
Date:   Tue Aug 16 21:33:12 2011 +0200

    Fix a test failure in t/GtkStatusIcon.t
    
    https://bugzilla.gnome.org/show_bug.cgi?id=634383

 t/GtkStatusIcon.t |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/t/GtkStatusIcon.t b/t/GtkStatusIcon.t
index 90c7774..a10371a 100644
--- a/t/GtkStatusIcon.t
+++ b/t/GtkStatusIcon.t
@@ -140,14 +140,18 @@ SKIP: {
   skip 'new 2.16 stuff', 6
     unless Gtk2->CHECK_VERSION(2, 16, 0);
 
+  # Non-X11 platforms require a tooltip text for the below to work.
+  $icon->set_tooltip_text("TEST");
+
   $icon->set_has_tooltip(TRUE);
   is ($icon->get_has_tooltip(), TRUE);
 
   $icon->set_has_tooltip(FALSE);
   is ($icon->get_has_tooltip(), FALSE);
 
-  $icon->set_tooltip_markup("<b>TEST1</b>");
-  is ($icon->get_tooltip_markup(), "<b>TEST1</b>");
+  # Non-X11 platforms don't actually support any markup tags.
+  $icon->set_tooltip_markup("TEST1");
+  is ($icon->get_tooltip_markup(), "TEST1");
 
   $icon->set_tooltip_markup(undef);
   is ($icon->get_tooltip_markup(), undef);



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