libgitk_dialog.c File Reference

test suite for libgitk : dialog More...

#include "libgitk.h"

Include dependency graph for libgitk_dialog.c:

Include dependency graph

Go to the source code of this file.

Functions

TCase * libgitk_dialog_tcase (void)
 dialog test suite

void test_gitk_dialog_new_from_string_1 (void)
 loads a skeleton dialog from string

void test_gitk_dialog_show_1 (void)
 load three skeleton dialogs from strings and test priority

void test_gitk_dialog_show_2 (void)
 load three skeleton dialogs from string and show them with same priority

void test_setup (void)
 announce start of the test

void test_teardown (void)
 announce end of the test


Variables

gchar * dialog1_desc
 minimal test dialog number 1

gchar * dialog2_desc
 minimal test dialog number 2

gchar * dialog3_desc
 minimal test dialog number 3


Detailed Description

test suite for libgitk : dialog

Id
libgitk_dialog.c,v 1.5 2004/08/31 17:42:01 ensonic Exp

Author:
Stefan Kost <ensonic@users.sf.net>
Date:
Thu Nov 22 15:00:14 2001

Todo:
testcase for : gitk_dialog_show(dialog1,FALSE);gitk_dialog_show(dialog1,FALSE);

testcase for : gitk_dialog_hide(dialog1);gitk_dialog_hide(dialog1);

testcase for : gitk_dialog_free(dialog1);gitk_dialog_free(dialog1);

Definition in file libgitk_dialog.c.


Function Documentation

void test_gitk_dialog_new_from_string_1 void   )  [static]
 

loads a skeleton dialog from string

Test:
loads a skeleton dialog from string

Definition at line 89 of file libgitk_dialog.c.

References dialog1_desc, ERROR_STR_LENGTH, errormsg, gitk_dialog_free(), gitk_dialog_new_from_string(), gitk_done(), gitk_get_error_code(), gitk_get_error_str(), gitk_init(), GitkDialogPtr, test_argc, and test_argvptr.

Referenced by libgitk_dialog_tcase().

Here is the call graph for this function:

void test_gitk_dialog_show_1 void   )  [static]
 

load three skeleton dialogs from strings and test priority

Test:
load three skeleton dialogs from strings and test priority

Definition at line 107 of file libgitk_dialog.c.

References dialog1_desc, dialog2_desc, dialog3_desc, ERROR_STR_LENGTH, errormsg, gitk_context_get_highest_used_priority(), gitk_dialog_free(), gitk_dialog_hide(), gitk_dialog_new_from_string(), gitk_dialog_show(), gitk_done(), gitk_get_error_code(), gitk_get_error_str(), gitk_init(), GitkDialogPtr, test_argc, and test_argvptr.

Referenced by libgitk_dialog_tcase().

Here is the call graph for this function:

void test_gitk_dialog_show_2 void   )  [static]
 

load three skeleton dialogs from string and show them with same priority

Test:
test_gitk_dialog_show_2

Definition at line 148 of file libgitk_dialog.c.

References dialog1_desc, dialog2_desc, dialog3_desc, ERROR_STR_LENGTH, errormsg, gitk_context_activate(), gitk_dialog_free(), gitk_dialog_hide(), gitk_dialog_new_from_string(), gitk_dialog_show(), gitk_done(), gitk_get_error_code(), gitk_get_error_str(), gitk_init(), GitkDialogPtr, test_argc, and test_argvptr.

Referenced by libgitk_dialog_tcase().

Here is the call graph for this function:

void test_setup void   )  [static]
 

announce start of the test

Definition at line 23 of file libgitk_dialog.c.

References gitk_log.

Referenced by libgitk_dialog_tcase().

void test_teardown void   )  [static]
 

announce end of the test

Definition at line 30 of file libgitk_dialog.c.

References gitk_log.

Referenced by libgitk_dialog_tcase().


Variable Documentation

gchar* dialog1_desc [static]
 

Initial value:

\
"<?xml version=\"1.0\" ?>"\
"<!DOCTYPE giml SYSTEM \"http://gitk.sourceforge.net/giml.dtd\">"\
"<giml xmlns=\""GITK_NS_URL"\""\
" xmlns:dc=\"http://purl.org/dc/elements/1.1/\""\
" xmlns:i18n=\""I18N_NS_URL"\""\
" >"\
"  <dialog>"\
"    <meta>"\
"      <dc:title><i18n:text>dialog 1</i18n:text></dc:title>"\
"    </meta>"\
"    <widgetgroup><widget/></widgetgroup>"\
"  </dialog>"\
"</giml>"
minimal test dialog number 1

Definition at line 37 of file libgitk_dialog.c.

Referenced by test_gitk_dialog_new_from_string_1(), test_gitk_dialog_show_1(), and test_gitk_dialog_show_2().

gchar* dialog2_desc [static]
 

Initial value:

\
"<?xml version=\"1.0\" ?>"\
"<!DOCTYPE giml SYSTEM \"http://gitk.sourceforge.net/giml.dtd\">"\
"<giml xmlns=\""GITK_NS_URL"\""\
" xmlns:dc=\"http://purl.org/dc/elements/1.1/\""\
" xmlns:i18n=\""I18N_NS_URL"\""\
" >"\
"  <dialog>"\
"    <meta>"\
"      <dc:title><i18n:text>dialog 2</i18n:text></dc:title>"\
"    </meta>"\
"    <widgetgroup><widget/></widgetgroup>"\
"  </dialog>"\
"</giml>"
minimal test dialog number 2

Definition at line 54 of file libgitk_dialog.c.

Referenced by test_gitk_dialog_show_1(), and test_gitk_dialog_show_2().

gchar* dialog3_desc [static]
 

Initial value:

\
"<?xml version=\"1.0\" ?>"\
"<!DOCTYPE giml SYSTEM \"http://gitk.sourceforge.net/giml.dtd\">"\
"<giml xmlns=\""GITK_NS_URL"\""\
" xmlns:dc=\"http://purl.org/dc/elements/1.1/\""\
" xmlns:i18n=\""I18N_NS_URL"\""\
" >"\
"  <dialog>"\
"    <meta>"\
"      <dc:title><i18n:text>dialog 3</i18n:text></dc:title>"\
"    </meta>"\
"    <widgetgroup><widget/></widgetgroup>"\
"  </dialog>"\
"</giml>"
minimal test dialog number 3

Definition at line 71 of file libgitk_dialog.c.

Referenced by test_gitk_dialog_show_1(), and test_gitk_dialog_show_2().


Generated on Thu Oct 28 11:03:23 2004 for gitk by doxygen 1.3.6