testinggtk r230 - trunk/tests



Author: bjornl
Date: Sun Jun 22 08:31:47 2008
New Revision: 230
URL: http://svn.gnome.org/viewvc/testinggtk?rev=230&view=rev

Log:
Test checking oob text-column

Modified:
   trunk/tests/test_entrycompletion.py

Modified: trunk/tests/test_entrycompletion.py
==============================================================================
--- trunk/tests/test_entrycompletion.py	(original)
+++ trunk/tests/test_entrycompletion.py	Sun Jun 22 08:31:47 2008
@@ -45,3 +45,18 @@
     # completion.set_model(store)
     # completion.complete()
 
+ utils pass_on_warnings
+def test_complete_with_text_column_oob():
+    '''
+    Ensure that a ``GtkWarning`` is printed when completing with a
+    text-column that is out of bounds.
+    '''
+    store = gtk.ListStore(str)
+    store.append(['foo'])
+
+    completion = gtk.EntryCompletion()
+    completion.set_text_column(99)
+    completion.set_model(store)
+    entry = gtk.Entry()
+    entry.set_completion(completion)
+    completion.complete()



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