testinggtk r238 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r238 - trunk/tests
- Date: Mon, 23 Jun 2008 20:21:48 +0000 (UTC)
Author: bjornl
Date: Mon Jun 23 20:21:48 2008
New Revision: 238
URL: http://svn.gnome.org/viewvc/testinggtk?rev=238&view=rev
Log:
Test for adding non-scrollable widget
Modified:
trunk/tests/test_scrolledwindow.py
Modified: trunk/tests/test_scrolledwindow.py
==============================================================================
--- trunk/tests/test_scrolledwindow.py (original)
+++ trunk/tests/test_scrolledwindow.py Mon Jun 23 20:21:48 2008
@@ -2,6 +2,7 @@
Tests for the ``gtk.ScrolledWindow`` class.
'''
import gtk
+import utils
def test_default_adjustments():
'''
@@ -45,4 +46,12 @@
scroll = MyScrolledWindow()
print scroll.get_hscrollbar()
-
+
+ utils pass_on_warnings
+def test_add_non_scrollable_widget():
+ '''
+ Ensure that a warning is printed when you add a non-scrollable
+ widget to a ``gtk.ScrolledWindow``.
+ '''
+ sw = gtk.ScrolledWindow()
+ sw.add(gtk.Label('hi'))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]