From d0449bfb71c391fd5b4ac9bc7d344639eda80332 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Fri, 14 Oct 2005 17:03:12 +0000 Subject: 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) --- tests/Makefile.am | 1 + tests/test_gdk.py | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/test_gdk.py 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) -- cgit