testinggtk r392 - trunk/tests/gdk
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r392 - trunk/tests/gdk
- Date: Fri, 29 Aug 2008 22:35:32 +0000 (UTC)
Author: bjornl
Date: Fri Aug 29 22:35:31 2008
New Revision: 392
URL: http://svn.gnome.org/viewvc/testinggtk?rev=392&view=rev
Log:
Tests for the gtk.gdk.PixbufSimpleAnim class
Added:
trunk/tests/gdk/test_pixbufsimpleanim.py
Added: trunk/tests/gdk/test_pixbufsimpleanim.py
==============================================================================
--- (empty file)
+++ trunk/tests/gdk/test_pixbufsimpleanim.py Fri Aug 29 22:35:31 2008
@@ -0,0 +1,12 @@
+'''
+Tests for the ``gtk.gdk.PixbufSimpleAnim`` class.
+'''
+from gtk import gdk
+
+def test_default_attributes():
+ anim = gdk.PixbufSimpleAnim(100, 200, 10)
+ assert anim.get_width() == 100
+ assert anim.get_height() == 200
+ iter = anim.get_iter()
+ assert not iter.get_pixbuf()
+ assert iter.get_delay_time() == -1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]