diff options
author | Johan Dahlin <johan@src.gnome.org> | 2005-10-14 17:03:12 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2005-10-14 17:03:12 +0000 |
commit | d0449bfb71c391fd5b4ac9bc7d344639eda80332 (patch) | |
tree | 540b9a12d5e9093c8d69543d54ce65b27e23eaf8 | |
parent | 732cf9242bd837605856c9822374771f96f0fcd0 (diff) | |
download | pygobject-d0449bfb71c391fd5b4ac9bc7d344639eda80332.tar.gz pygobject-d0449bfb71c391fd5b4ac9bc7d344639eda80332.tar.xz pygobject-d0449bfb71c391fd5b4ac9bc7d344639eda80332.zip |
Add test
* tests/Makefile.am (tests):
* tests/test_gdk.py: Add test
* gtk/gdk.defs (pixmap_create_from_data)
(bitmap_create_from_data): use guchar* instead of gchar,
fixes #318874 (Bob Gibbs)
-rw-r--r-- | tests/Makefile.am | 1 | ||||
-rw-r--r-- | tests/test_gdk.py | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index e914250..86d97c4 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -22,6 +22,7 @@ tests = \ test_conversion.py \ test_dialog.py \ test_enum.py \ + test_gdk.py \ test_gtype.py \ test_mainloop.py \ test_radiobutton.py \ diff --git a/tests/test_gdk.py b/tests/test_gdk.py new file mode 100644 index 0000000..7bbaf9a --- /dev/null +++ b/tests/test_gdk.py @@ -0,0 +1,12 @@ +import unittest + +from common import gtk + +class GdkTest(unittest.TestCase): + def testBitmapCreateFromData(self): + gtk.gdk.bitmap_create_from_data(None, '\x00', 1, 1) + + def testPixmapCreateFromData(self): + black = gtk.gdk.color_parse('black') + gtk.gdk.pixmap_create_from_data(None, '\x00', 1, 1, 1, + black, black) |