aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ui-tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui-tests')
-rw-r--r--tests/ui-tests/.cvsignore1
-rw-r--r--tests/ui-tests/Makefile.am26
-rw-r--r--tests/ui-tests/msg-composer-test.c52
3 files changed, 67 insertions, 12 deletions
diff --git a/tests/ui-tests/.cvsignore b/tests/ui-tests/.cvsignore
index be569b9c4c..10c9ca5909 100644
--- a/tests/ui-tests/.cvsignore
+++ b/tests/ui-tests/.cvsignore
@@ -3,3 +3,4 @@ Makefile
.deps
.libs
store_listing
+msg-composer-test
diff --git a/tests/ui-tests/Makefile.am b/tests/ui-tests/Makefile.am
index c4849e7c3c..24d62047db 100644
--- a/tests/ui-tests/Makefile.am
+++ b/tests/ui-tests/Makefile.am
@@ -1,17 +1,19 @@
# process this file with automake to create Makefile.in
-INCLUDES = -I$(top_srcdir)/intl -I$(top_srcdir)/camel \
- -I$(includedir) -I$(top_srcdir)/camel/providers/MH \
+INCLUDES = \
+ -I$(top_srcdir)/intl \
+ -I$(top_srcdir)/camel \
+ -I$(includedir) \
+ -I$(top_srcdir)/camel/providers/MH \
+ -I$(top_srcdir)/widgets \
$(EXTRA_GNOME_CFLAGS)
-LDADD = \
- $(top_builddir)/camel/libcamel.la \
- $(top_builddir)/camel/providers/MH/libcamelmh.la \
- $(INTLLIBS) $(EXTRA_GNOME_LIBS) $(PTHREAD_LIB)
+LDADD = \
+ $(top_builddir)/widgets/libevolutionwidgets.la \
+ $(top_builddir)/camel/libcamel.la \
+ $(INTLLIBS) \
+ $(EXTRA_GNOME_LIBS) \
+ $(PTHREAD_LIB)
-
-
-
-
-noinst_PROGRAMS = \
- store_listing \ No newline at end of file
+noinst_PROGRAMS = \
+ msg-composer-test \ No newline at end of file
diff --git a/tests/ui-tests/msg-composer-test.c b/tests/ui-tests/msg-composer-test.c
new file mode 100644
index 0000000000..8fbf01b5e8
--- /dev/null
+++ b/tests/ui-tests/msg-composer-test.c
@@ -0,0 +1,52 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
+
+#include <gnome.h>
+
+#include <camel/camel-data-wrapper.h>
+#include <camel/camel-stream-fs.h>
+#include <camel/camel-stream.h>
+
+#include "e-msg-composer.h"
+
+static void
+send_cb (EMsgComposer *composer,
+ gpointer data)
+{
+ CamelMimeMessage *message;
+ CamelStream *stream;
+ gint stdout_dup;
+
+ message = e_msg_composer_get_message (composer);
+
+ stdout_dup = dup (1);
+ stream = camel_stream_fs_new_with_fd (stdout_dup);
+ camel_data_wrapper_write_to_stream (CAMEL_DATA_WRAPPER (message),
+ stream);
+ camel_stream_close (stream);
+
+ gtk_object_unref (GTK_OBJECT (message));
+
+#if 0
+ gtk_widget_destroy (GTK_WIDGET (composer));
+ gtk_main_quit ();
+#endif
+}
+
+int
+main (int argc, char **argv)
+{
+ GtkWidget *composer;
+
+ gnome_init ("test", "0.0", argc, argv);
+ glade_gnome_init ();
+
+ composer = e_msg_composer_new ();
+ gtk_widget_show (composer);
+
+ gtk_signal_connect (GTK_OBJECT (composer), "send",
+ GTK_SIGNAL_FUNC (send_cb), NULL);
+
+ gtk_main ();
+
+ return 0;
+}
cgit.cgi/freebsd-ports-gnome/commit/LEGAL?h=gstreamer0.10-removal&id=8ed49a3d0aa4aa6d35ec8ff3508a17fcf55edf3c'>Resurrect emulators/basiliskII and emulators/vmware-tools2 since there arevd2006-12-051-0/+2 * Remove expired ports:vd2006-12-041-3/+0 * - Add entry for sysutils/linux-megaclipav2006-12-011-0/+1 * Remove expired ports:vd2006-11-091-1/+0 * Remove expired leaf ports:vd2006-10-311-2/+0 * Remove ZendOptimizer, since we can distribute distfiles.ale2006-10-101-2/+0 * - Update games/atitd's distfile name.shaun2006-10-101-1/+1 * Add note about multimedia/pvrxxx.alepulver2006-10-061-0/+3 * Sync files masks with the current ports tree.vd2006-10-051-75/+75 * Add a note for security/metasploit-devel.alepulver2006-10-051-0/+1 * Add entry for japanese/citrix_ica.alepulver2006-10-041-0/+1 * - Add note about games/fretsonfire-dataacm2006-10-041-0/+3 * Remove references to nonexistent ports:vd2006-10-031-15/+2 * Remove expired ports:vd2006-10-021-3/+0 * Add a note about comms/hcfmdm.bsam2006-10-021-0/+1 * - Update for devel/uppaalrafan2006-09-171-1/+1 * Remove expired leaf ports:vd2006-09-121-1/+0 * - Add note about games/linux-savageacm2006-09-091-0/+2 * - Add note about sysutils/linux-megamgrbsam2006-09-071-0/+1 * - Merge entry of games/linux-doom3-demo with games/linux-doom3 (recentalepulver2006-09-051-1/+1 * Remove antivir-milterkris2006-09-031-1/+0 * add archivers/lha-acdinoex2006-08-171-0/+1 * - Fix the entry for linux-quake4. Now this affect to linux-quake4 andacm2006-08-031-1/+1 * - Add note about games/linux-quake4acm2006-08-031-0/+1 * - Add note about science/svmlightclsung2006-08-011-0/+3 * - Add note about security/httprintrafan2006-08-011-0/+1 * - Add note about linux-unacesat2006-07-311-0/+2 * - Permission to distribute packages has been grantedsat2006-07-301-2/+1 * - Add autopano-sift:tmclaugh2006-07-301-0/+1 * Add port audio/optimfrog:sat2006-07-221-0/+2 * Add port audio/lpac:sat2006-07-221-0/+1 * Add an entry for games/linux-ut.alepulver2006-06-141-0/+1 * Add an entry in LEGAL for Google Earth.flz2006-06-131-0/+1 * Add a note about security/pam_authsrvgarga2006-06-051-0/+2 * Add entry for audio/linux-shoutcast.itetcu2006-06-051-0/+1 * - Remove games/linux-alienarena (the data is in a separate port).alepulver2006-05-201-1/+0 * Fix file order that I messed up with the last commitjeh2006-05-151-2/+2 * Remove the DAT only port since it is now brough in live in the scanner portjeh2006-05-151-2/+2 * Update security/vscan's file namejeh2006-05-091-1/+1 * Add entry for java/netcomponents.lawrance2006-05-071-0/+2 * * plan9portmnag2006-05-061-3/+0 * - Remove redundant entry for xgobi in wrong positionsem2006-04-301-1/+1 * . Remove the entries for java/diablo-jdk13 and java/diablo-jre13 since theglewis2006-04-251-4/+0 * - Add math/kash3 (no commercial distribution or use)johans2006-04-191-0/+2 * Remove emulators/gngeo because it doesn't package the Neo-Geo BIOS anymorealepulver2006-04-181-2/+0 * Remove www/linux-flashplugin* ports because of license problem.hrs2006-04-081-3/+0 * . Add entries for java/diablo-jdk15 and java/diablo-jre15.glewis2006-04-061-4/+8 * Add net/onion-feclioux2006-04-051-0/+2 * - Fix installation;thierry2006-04-021-0/+1 * Remove expired leaf ports:vd2006-03-311-1/+0 * - Remove polyml.mnag2006-03-291-1/+0 * - Add security/bsd_upektfmesssem2006-03-291-1/+1 * Add audio/shoutcast -- No redistribution allowedgarga2006-03-191-0/+1 * Add x11-themes/gnome-icons-snowishgarga2006-02-231-0/+1 * tw_cli(8) is a Command Line Interface Storage Management Software formnag2006-02-231-0/+2 * Add games/ggohq2006-02-201-0/+1 * Add graphics/linux-adobesvg.jylefort2006-02-181-0/+1 * Add an entry for games/sfbolhq2006-02-141-0/+2 * * Remove print/acroread - it has expired on 2006-01-03vd2006-02-101-3/+0 * - Remove port; project is deadtdb2006-02-071-1/+0 * Add sysutils/freqsdwn.nork2006-02-041-0/+2 * - Add devel/plan9portgarga2006-02-031-0/+3 * Populate newly create net-p2p category with these ports:pav2006-01-311-2/+2 * Mention ``games/aestats'' -- commercial use is prohibited.danfe2006-01-271-0/+1 * - dusage is a peacewarepav2006-01-241-0/+1 * Add japanese/xgate.nork2006-01-161-0/+1 * Add information about devel/simianedwin2005-12-291-0/+2 * Add games/flightgear-mb339-pan.jylefort2005-12-121-0/+1 * Add xxe, whose license says it can't be redistributed.fenner2005-12-101-0/+2 * Add games/linux-x-plane-net-installer.jylefort2005-12-071-0/+1 * Add entry for ports/chinese/dfsongsdbarner2005-12-011-0/+2 * Add information about finance/pfproedwin2005-12-011-0/+3 * Add games/linux-goodway.jylefort2005-11-271-0/+1 * Add games/linux-x-plane.jylefort2005-11-271-0/+1 * add lang/twelfedwin2005-11-261-0/+2 * [NEW PORT] games/gngeo - NeoGeo emulatoredwin2005-11-231-0/+2 * Add games/linux-warsow.jylefort2005-11-231-0/+2 * Add games/linux-alienarena.jylefort2005-11-231-0/+1 * Correct entries for a number of ports that were moved or deleted.lawrance2005-11-191-21/+11 * - Delete due to being unfetchable and being obsoleted by gnome-art portpav2005-11-181-6/+4 * Add entry for devel/uppaalvs2005-11-161-0/+2 * Remove trailing spaces.krion2005-11-131-2/+2 * Re-alphabetize.linimon2005-10-301-2/+2 * Remove a non-sensical line.tobez2005-10-291-1/+0 * Modify pattern for misc/gopod to also match misc/gtk-gopodehaupt2005-10-261-1/+1 * - Add info for graphics/uDrawGraphehaupt2005-10-111-0/+2 * - Add info for games/annelidgarga2005-10-041-0/+1 * Update wildcard to match all MT versionsarved2005-09-261-1/+1 * - Add info for games/linux-americasarmyahze2005-09-141-0/+1 * - update to 0.5clement2005-07-311-1/+0 * Add entry for lang/polyml, which requires a license agreement beforebarner2005-07-291-0/+1 * . Note the restriction on jbootstrap: one source file is under the SCSL.glewis2005-07-211-0/+2 * Indicate that the sysutils/megarc distfile must be downloaded manually.jylefort2005-06-291-0/+1 * Add marathon2-data 1.0,oliver2005-06-181-0/+3 * Note restriction on wgetpro: on its home page, the authors warntrevor2005-06-121-0/+1 * Remove the netscape7 port due to multiple security bugs.trevor2005-06-101-3/+0 * - make install folder independent of PORTVERSION;thierry2005-06-081-1/+0 * The bdc port license doesn't allow redistribution.niels2005-06-081-0/+2 * - databases/jdbc-oracle816 has been removed from Oracle's site,thierry2005-06-061-2/+2 * Add an entry for japanese/acroread. To redistribute the distfileshrs2005-06-051-0/+3 * Add information about misc/gopod:edwin2005-05-311-0/+1 * ftp/pftpd can now be redistributed.jylefort2005-05-251-1/+0 * - Move iperf from net to benchmarkspav2005-05-221-1/+1 * games/bomb is GPL.thierry2005-05-201-1/+0 * sdpara is now released under GPLmaho2005-05-121-1/+0 * Remove SDPA. now it is relased under GPLmaho2005-05-121-1/+0 * - remove graphics/netpbmdinoex2005-05-101-1/+1 * Per insistence of the author of this software, remove these ports fromlinimon2005-05-071-4/+0 * Add entry for x11-fonts/tolkienlawrance2005-04-221-0/+3 * Add an entry for audio/slimserver.brooks2005-04-221-0/+4 * - Update to 1.2.1lawrance2005-04-211-0/+2 * - Add some games having an EULA.jylefort2005-04-181-1/+5 * Removed entry for games/robocode as it is no longer RESTRICTED (now underhq2005-04-051-4/+0 * Add an entry for math/miracl stating that it is free for non-profitlioux2005-04-031-0/+3 * The reason the linux-understand_* ports are unfetchable is not only thatlinimon2005-04-011-0/+3 * Display EULA and do not fetch automatically etc.maho2005-03-291-1/+6 * Fix the location of the acroread ports (was: devel, now: print).joerg2005-03-211-2/+2 * With portmgr hat on, mark both of these ports as RESTRICTED. Accordinglinimon2005-03-201-0/+6 * Add ttf30.exe at japanese/epson-ttfontsmaho2005-03-191-0/+1 * Add an entry for graphics/linux-ac3d.thierry2005-03-161-0/+2 * - Improve wording slightlydanfe2005-03-111-7/+7 * Consistency and spelling nits.danfe2005-03-111-194/+196 * games/quakeserver was nuked some time ago.danfe2005-03-111-2/+0 * Massive clean-up:danfe2005-03-091-385/+381 * - add mail/sid-milterdinoex2005-03-091-0/+2 * Add an entry for x11-fonts/texcm-ttf and x11-fonts/mathfonts.thierry2005-03-071-0/+3 * - Extend densguardian pattern.sem2005-03-051-2/+1 * - sync DIST_SUBDIR with realityclement2005-02-261-0/+1 * Add devel/bitkeepersem2005-02-251-0/+1 * - add ports/science/dclsem2005-02-251-1/+2 * Remove references to ports recently deleted.kris2005-02-211-2/+0 * Add an entry for Aqua Data Studio.thierry2005-02-121-0/+3 * Add description about cyberbit fontmaho2005-02-101-0/+1 * s/j2se/jdk/g for all jdk1.5 related tarballsphantom2005-01-201-3/+3 * Add jdk 1.5.0 distfiles and fix jdk1.5.0-doc distfile namephantom2005-01-201-1/+5 * - polygraph has a restrictive licence.clement2005-01-191-0/+1 * Upgrade to Realplayer 10.0.1.436 (gold).thierry2004-12-161-1/+1 * Update the name of the security/antivir-milter distfile. The old distfilesmarius2004-12-121-1/+1 * A command line idea encryption and decryption utility written bysem2004-12-071-0/+2 * Remove entries on mail/milter-sender. It's gone.vs2004-12-021-4/+0 * Add an entry for MT. This is just for completeness as the port requiresarved2004-11-271-0/+1 * Add jude-community 1.4.3, A Java/UML Object-Oriented Design Tool.nork2004-11-231-1/+1 * Move triangle from cad to math.thierry2004-11-161-1/+1 * Add a notice for cad/triangle.thierry2004-11-151-0/+2 * ``Yasou'' (``wildflower'' in English) picture book was produced by SAS.pav2004-11-131-0/+4 * Add blast, a powerful software package for gene and protein identification,pav2004-11-121-0/+1 * add audio/faac - Restrictive copyrightahze2004-11-101-0/+2 * Add multimedia/pvr250 port to describe the legal status if hcwPVRP2.sysedwin2004-10-161-0/+3 * Add milter-spamc, non-commercial distribution of the original files only.clive2004-10-141-0/+2 * Set NO_CDROM due to licensing restrictions.linimon2004-10-051-0/+2 * Clarify the legal status of java/eclipse-clay-core: you must read andlinimon2004-09-101-1/+2 * Add java/eclipse-clay-core.nork2004-09-041-0/+1 * Redistribution of grass*i18n-ipafull-gnu_bin.tar.gz itself is permitted.hrs2004-08-211-1/+0 * Add himeno/* uncertain to distribute bin and/or srcmaho2004-08-161-0/+1 * Add ipa-ttfonts. Currently cannot distribute fonts itself.maho2004-08-141-0/+1 * - Kill trailing whitespacepav2004-08-131-11/+11 * Add jpgraph (not for commercial use).ale2004-07-191-0/+1 * - Make LEGAL closer to reality.clement2004-06-301-97/+307 * Add entry for net/skype, they don't allow redistribution yet.netchild2004-06-241-0/+1 * Add entry for java/sun-wtk: No redistribution allowedvs2004-06-081-0/+1 * Add linux-flashplugin7 7.0r25, the official Macromedia Flash Playernork2004-06-061-0/+1 * Add the distfiles for mail/milter-sender. The application'syar2004-06-05