aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2009-08-01 23:33:21 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-08-22 21:13:12 +0800
commit1b1ba53e2b64a4e5b3f9e27a54b3b863f5be0d4a (patch)
treef37e884c389c9b436c952e7b7dc14e84e1cbf24b /tests
parent8bccbdc3d107c019ef858d0ad15c769c31028731 (diff)
downloadgsoc2013-empathy-1b1ba53e2b64a4e5b3f9e27a54b3b863f5be0d4a.tar
gsoc2013-empathy-1b1ba53e2b64a4e5b3f9e27a54b3b863f5be0d4a.tar.gz
gsoc2013-empathy-1b1ba53e2b64a4e5b3f9e27a54b3b863f5be0d4a.tar.bz2
gsoc2013-empathy-1b1ba53e2b64a4e5b3f9e27a54b3b863f5be0d4a.tar.lz
gsoc2013-empathy-1b1ba53e2b64a4e5b3f9e27a54b3b863f5be0d4a.tar.xz
gsoc2013-empathy-1b1ba53e2b64a4e5b3f9e27a54b3b863f5be0d4a.tar.zst
gsoc2013-empathy-1b1ba53e2b64a4e5b3f9e27a54b3b863f5be0d4a.zip
Add a test for the assistant
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am2
-rw-r--r--tests/test-empathy-account-assistant.c25
2 files changed, 27 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 7f99eaf36..eb5dba529 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -25,6 +25,7 @@ LDADD = \
noinst_PROGRAMS = \
contact-manager \
empetit \
+ test-empathy-account-assistant \
test-empathy-presence-chooser \
test-empathy-status-preset-dialog \
test-empathy-protocol-chooser
@@ -34,6 +35,7 @@ empetit_SOURCES = empetit.c
test_empathy_presence_chooser_SOURCES = test-empathy-presence-chooser.c
test_empathy_status_preset_dialog_SOURCES = test-empathy-status-preset-dialog.c
test_empathy_protocol_chooser_SOURCES = test-empathy-protocol-chooser.c
+test_empathy_account_assistant_SOURCES = test-empathy-account-assistant.c
check_PROGRAMS = check-main
TESTS = check-main
diff --git a/tests/test-empathy-account-assistant.c b/tests/test-empathy-account-assistant.c
new file mode 100644
index 000000000..bdcbe6c69
--- /dev/null
+++ b/tests/test-empathy-account-assistant.c
@@ -0,0 +1,25 @@
+#include <config.h>
+
+#include <gtk/gtk.h>
+
+#include <libempathy-gtk/empathy-ui-utils.h>
+#include <libempathy-gtk/empathy-account-assistant.h>
+
+int main (int argc, char *argv)
+{
+ GtkWidget *assistant;
+
+ gtk_init (&argc, &argv);
+ empathy_gtk_init ();
+
+ assistant = empathy_account_assistant_new ();
+
+ gtk_widget_show_all (assistant);
+
+ g_signal_connect_swapped (assistant, "destroy",
+ G_CALLBACK (gtk_main_quit), NULL);
+
+ gtk_main ();
+
+ return 0;
+}