testinggtk r373 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r373 - trunk/tests
- Date: Mon, 18 Aug 2008 21:32:03 +0000 (UTC)
Author: bjornl
Date: Mon Aug 18 21:32:03 2008
New Revision: 373
URL: http://svn.gnome.org/viewvc/testinggtk?rev=373&view=rev
Log:
Two new tests for the get_snapshot method
Modified:
trunk/tests/test_widget.py
Modified: trunk/tests/test_widget.py
==============================================================================
--- trunk/tests/test_widget.py (original)
+++ trunk/tests/test_widget.py Mon Aug 18 21:32:03 2008
@@ -170,6 +170,21 @@
win.add(widget)
assert data[0] == (widget, None)
+def test_get_snapshot_of_unrealized_widget():
+ widget = gtk.Button()
+ pixmap = widget.get_snapshot(gtk.gdk.Rectangle(0, 0, 100, 100))
+ assert not pixmap
+
+def test_get_snapshot_optional_clip_rect():
+ '''
+ Ensure that the ``clip_rect`` argument to ``get_snapshot`` is
+ optional.
+
+ :bug: #548349
+ '''
+ widget = gtk.Button()
+ widget.get_snapshot()
+
######################################################################
##### Focus and grab tests ###########################################
######################################################################
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]