[sapwood] provide room for more tests



commit 1fc8076845911fd5564bf44c86a591cb14e67aec
Author: Sven Herzberg <herzi gnome-de org>
Date:   Thu Aug 5 11:32:05 2010 +0200

    provide room for more tests
    
    * tests/Makefile.am: updated
    * tests/test-sapwood.c: updated
    * tests/test-sapwood.h: a header file to list the section's prototypes
    * tests/test-theme-pixbuf.c: a source file for the ThemePixbuf's tests

 tests/Makefile.am         |    2 ++
 tests/test-sapwood.c      |    3 +++
 tests/test-sapwood.h      |   36 ++++++++++++++++++++++++++++++++++++
 tests/test-theme-pixbuf.c |   36 ++++++++++++++++++++++++++++++++++++
 4 files changed, 77 insertions(+), 0 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 09d096c..f76f2e2 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -30,6 +30,8 @@ test_sapwood_SOURCES=\
 	test-framework.c \
 	test-framework.h \
 	test-sapwood.c \
+	test-sapwood.h \
+	test-theme-pixbuf.c \
 	$(NULL)
 
 EXTRA_DIST+=\
diff --git a/tests/test-sapwood.c b/tests/test-sapwood.c
index 6bfda1f..db1621f 100644
--- a/tests/test-sapwood.c
+++ b/tests/test-sapwood.c
@@ -27,6 +27,7 @@
 #include <gdk/gdkx.h>       /* GDK_DISPLAY_XDISPLAY() */
 
 #include "test-framework.h"
+#include "test-sapwood.h"
 
 static void
 test_larger (void)
@@ -197,6 +198,8 @@ main (int   argc,
   g_test_add_func ("/sapwood/pixmap/render-rects/larger", test_larger);
   g_test_add_func ("/sapwood/pixmap/render-rects/larger-masked", test_larger_masked);
 
+  test_theme_pixbuf ();
+
   return g_test_run ();
 }
 
diff --git a/tests/test-sapwood.h b/tests/test-sapwood.h
new file mode 100644
index 0000000..ea3633c
--- /dev/null
+++ b/tests/test-sapwood.h
@@ -0,0 +1,36 @@
+/* This file is part of sapwood
+ *
+ * Copyright (C) 2010  Sven Herzberg
+ *
+ * This work is provided "as is"; redistribution and modification
+ * in whole or in part, in any medium, physical or electronic is
+ * permitted without restriction.
+ *
+ * This work is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * In no event shall the authors or contributors be liable for any
+ * direct, indirect, incidental, special, exemplary, or consequential
+ * damages (including, but not limited to, procurement of substitute
+ * goods or services; loss of use, data, or profits; or business
+ * interruption) however caused and on any theory of liability, whether
+ * in contract, strict liability, or tort (including negligence or
+ * otherwise) arising in any way out of the use of this software, even
+ * if advised of the possibility of such damage.
+ */
+
+#ifndef TEST_SAPWOOD_H
+#define TEST_SAPWOOD_H
+
+#include <glib.h>
+
+G_BEGIN_DECLS
+
+void test_theme_pixbuf (void);
+
+G_END_DECLS
+
+#endif /* !TEST_SAPWOOD_H */
+
+/* vim:set et sw=2 cino=t0,f0,(0,{s,>2s,n-1s,^-1s,e2s: */
diff --git a/tests/test-theme-pixbuf.c b/tests/test-theme-pixbuf.c
new file mode 100644
index 0000000..32759d2
--- /dev/null
+++ b/tests/test-theme-pixbuf.c
@@ -0,0 +1,36 @@
+/* This file is part of sapwood
+ *
+ * Copyright (C) 2010  Sven Herzberg
+ *
+ * This work is provided "as is"; redistribution and modification
+ * in whole or in part, in any medium, physical or electronic is
+ * permitted without restriction.
+ *
+ * This work is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * In no event shall the authors or contributors be liable for any
+ * direct, indirect, incidental, special, exemplary, or consequential
+ * damages (including, but not limited to, procurement of substitute
+ * goods or services; loss of use, data, or profits; or business
+ * interruption) however caused and on any theory of liability, whether
+ * in contract, strict liability, or tort (including negligence or
+ * otherwise) arising in any way out of the use of this software, even
+ * if advised of the possibility of such damage.
+ */
+
+#include "test-sapwood.h"
+
+static void
+test_render_clipped (void)
+{
+}
+
+void
+test_theme_pixbuf (void)
+{
+  g_test_add_func ("/sapwood/theme-pixbuf/render-clipped", test_render_clipped);
+}
+
+/* vim:set et sw=2 cino=t0,f0,(0,{s,>2s,n-1s,^-1s,e2s: */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]