testinggtk r382 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r382 - trunk/tests
- Date: Sat, 23 Aug 2008 15:25:38 +0000 (UTC)
Author: bjornl
Date: Sat Aug 23 15:25:38 2008
New Revision: 382
URL: http://svn.gnome.org/viewvc/testinggtk?rev=382&view=rev
Log:
Test for hide_all(), show_all() on gtk.Notebook
Modified:
trunk/tests/test_notebook.py
Modified: trunk/tests/test_notebook.py
==============================================================================
--- trunk/tests/test_notebook.py (original)
+++ trunk/tests/test_notebook.py Sat Aug 23 15:25:38 2008
@@ -186,3 +186,23 @@
book.do_button_release_event(book, ev)
assert book.get_current_page() == 2
+
+def test_hide_all_show_all():
+ '''
+ Ensure that the currently shown page does not change when you
+ first call ``hide_all`` and then ``show_all`` on the
+ ``gtk.Notebook``.
+
+ :bug: #438318
+ '''
+ book = gtk.Notebook()
+ for x in range(3):
+ page = gtk.Label('a')
+ page.show()
+ book.append_page(page)
+ book.show_all()
+
+ book.set_current_page(1)
+ book.hide_all()
+ book.show_all()
+ assert book.get_current_page() == 1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]