testinggtk r134 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r134 - trunk/tests
- Date: Sun, 15 Jun 2008 06:19:22 +0000 (UTC)
Author: bjornl
Date: Sun Jun 15 06:19:22 2008
New Revision: 134
URL: http://svn.gnome.org/viewvc/testinggtk?rev=134&view=rev
Log:
New disabled test for getting the gtk.TreeModel in the gtk.TreeView
Modified:
trunk/tests/test_filechooserdialog.py
Modified: trunk/tests/test_filechooserdialog.py
==============================================================================
--- trunk/tests/test_filechooserdialog.py (original)
+++ trunk/tests/test_filechooserdialog.py Sun Jun 15 06:19:22 2008
@@ -3,6 +3,7 @@
'''
import gc
import gtk
+import utils
def test_default_action():
'''
@@ -42,7 +43,6 @@
``gtk.FileChooserDialog`` works as expected.
'''
def iterate_children(widget):
- print widget.__class__.__name__
if not isinstance(widget, gtk.Container):
return
for child in widget.get_children():
@@ -61,3 +61,18 @@
if hasattr(widget, 'foreach'):
widget.foreach(walk)
walk(fc)
+
+def test_find_model_in_dialog():
+ '''
+ Ensure that getting the ``gtk.TreeModel`` of the ``gtk.TreeView``
+ in the ``gtk.FilerChooserDialog`` works as expected.
+
+ Disabled due to segfault.
+
+ :bug: #538401
+ '''
+ #fc = gtk.FileChooserDialog()
+ #path = ('VBox:FileChooserWidget:gtk.FileChooserDefault:'
+ # 'VBox:HPaned:VBox:ScrolledWindow:TreeView')
+ #view = utils.gtk_container_find_child(fc, path.split(':'))
+ #assert view.get_model()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]