summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2005-10-14 17:03:12 +0000
committerJohan Dahlin <johan@src.gnome.org>2005-10-14 17:03:12 +0000
commitd0449bfb71c391fd5b4ac9bc7d344639eda80332 (patch)
tree540b9a12d5e9093c8d69543d54ce65b27e23eaf8
parent732cf9242bd837605856c9822374771f96f0fcd0 (diff)
downloadpygobject-d0449bfb71c391fd5b4ac9bc7d344639eda80332.tar.gz
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.am1
-rw-r--r--tests/test_gdk.py12
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index e914250d..86d97c45 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 00000000..7bbaf9ae
--- /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)