testinggtk r129 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r129 - trunk/tests
- Date: Sun, 15 Jun 2008 03:11:03 +0000 (UTC)
Author: bjornl
Date: Sun Jun 15 03:11:03 2008
New Revision: 129
URL: http://svn.gnome.org/viewvc/testinggtk?rev=129&view=rev
Log:
Test for negative wrap-width
Modified:
trunk/tests/test_combobox.py
Modified: trunk/tests/test_combobox.py
==============================================================================
--- trunk/tests/test_combobox.py (original)
+++ trunk/tests/test_combobox.py Sun Jun 15 03:11:03 2008
@@ -85,3 +85,12 @@
#model = gtk.ListStore(gtk.gdk.Pixbuf)
#combo = gtk.ComboBox(model)
#combo.append_text('hi')
+
+ utils pass_on_warnings
+def test_negative_wrap_width():
+ '''
+ Ensure that a GtkWarning is printed if a negative argument is
+ passed to ``set_wrap_width``.
+ '''
+ combo = gtk.ComboBox()
+ combo.set_wrap_width(-1234)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]