acs-lang-test-procs.tcl

Helper test Tcl procedures.

Location:
packages/acs-lang/tcl/test/acs-lang-test-procs.tcl
Created:
18 October 2002
Author:
Peter Marklund <peter@collaboraid.biz>

Procedures in this file

Detailed information

_acs-lang__acs_lang_exec_dependencies (private)

 _acs-lang__acs_lang_exec_dependencies

Partial Call Graph (max 5 caller/called nodes):
%3 aa_log aa_log (public) aa_log_result aa_log_result (public) aa_true aa_true (public) util::which util::which (public) _acs-lang__acs_lang_exec_dependencies _acs-lang__acs_lang_exec_dependencies _acs-lang__acs_lang_exec_dependencies->aa_log _acs-lang__acs_lang_exec_dependencies->aa_log_result _acs-lang__acs_lang_exec_dependencies->aa_true _acs-lang__acs_lang_exec_dependencies->util::which

Testcases:
No testcase defined.

_acs-lang__catalog_files_are_tdom_parsable_xml (private)

 _acs-lang__catalog_files_are_tdom_parsable_xml

Partial Call Graph (max 5 caller/called nodes):
%3 aa_false aa_false (public) aa_log aa_log (public) aa_log_result aa_log_result (public) db_list db_list (public) dom dom _acs-lang__catalog_files_are_tdom_parsable_xml _acs-lang__catalog_files_are_tdom_parsable_xml _acs-lang__catalog_files_are_tdom_parsable_xml->aa_false _acs-lang__catalog_files_are_tdom_parsable_xml->aa_log _acs-lang__catalog_files_are_tdom_parsable_xml->aa_log_result _acs-lang__catalog_files_are_tdom_parsable_xml->db_list _acs-lang__catalog_files_are_tdom_parsable_xml->dom

Testcases:
No testcase defined.

_acs-lang__default_locale_from_lang (private)

 _acs-lang__default_locale_from_lang

Partial Call Graph (max 5 caller/called nodes):
%3 aa_log aa_log (public) aa_log_result aa_log_result (public) aa_true aa_true (public) lang::util::default_locale_from_lang lang::util::default_locale_from_lang (public) _acs-lang__default_locale_from_lang _acs-lang__default_locale_from_lang _acs-lang__default_locale_from_lang->aa_log _acs-lang__default_locale_from_lang->aa_log_result _acs-lang__default_locale_from_lang->aa_true _acs-lang__default_locale_from_lang->lang::util::default_locale_from_lang

Testcases:
No testcase defined.

_acs-lang__lang_message_dependencies_are_fine (private)

 _acs-lang__lang_message_dependencies_are_fine

Partial Call Graph (max 5 caller/called nodes):
%3 aa_log aa_log (public) aa_log_result aa_log_result (public) aa_true aa_true (public) apm_package_load_libraries_order apm_package_load_libraries_order (public) db_foreach db_foreach (public) _acs-lang__lang_message_dependencies_are_fine _acs-lang__lang_message_dependencies_are_fine _acs-lang__lang_message_dependencies_are_fine->aa_log _acs-lang__lang_message_dependencies_are_fine->aa_log_result _acs-lang__lang_message_dependencies_are_fine->aa_true _acs-lang__lang_message_dependencies_are_fine->apm_package_load_libraries_order _acs-lang__lang_message_dependencies_are_fine->db_foreach

Testcases:
No testcase defined.

_acs-lang__lang_messages_correct (private)

 _acs-lang__lang_messages_correct

Partial Call Graph (max 5 caller/called nodes):
%3 aa_false aa_false (public) aa_log aa_log (public) aa_log_result aa_log_result (public) aa_run_with_teardown aa_run_with_teardown (public) db_foreach db_foreach (public) _acs-lang__lang_messages_correct _acs-lang__lang_messages_correct _acs-lang__lang_messages_correct->aa_false _acs-lang__lang_messages_correct->aa_log _acs-lang__lang_messages_correct->aa_log_result _acs-lang__lang_messages_correct->aa_run_with_teardown _acs-lang__lang_messages_correct->db_foreach

Testcases:
No testcase defined.

_acs-lang__lang_package_has_files_in_locale_p (private)

 _acs-lang__lang_package_has_files_in_locale_p

Partial Call Graph (max 5 caller/called nodes):
%3 aa_false aa_false (public) aa_log aa_log (public) aa_log_result aa_log_result (public) aa_true aa_true (public) ad_generate_random_string ad_generate_random_string (public) _acs-lang__lang_package_has_files_in_locale_p _acs-lang__lang_package_has_files_in_locale_p _acs-lang__lang_package_has_files_in_locale_p->aa_false _acs-lang__lang_package_has_files_in_locale_p->aa_log _acs-lang__lang_package_has_files_in_locale_p->aa_log_result _acs-lang__lang_package_has_files_in_locale_p->aa_true _acs-lang__lang_package_has_files_in_locale_p->ad_generate_random_string

Testcases:
No testcase defined.

_acs-lang__lc_time_fmt_Z_timezone (private)

 _acs-lang__lc_time_fmt_Z_timezone

Partial Call Graph (max 5 caller/called nodes):
%3 aa_equals aa_equals (public) aa_log aa_log (public) aa_log_result aa_log_result (public) lang::conn::timezone lang::conn::timezone (public) lc_time_fmt lc_time_fmt (public) _acs-lang__lc_time_fmt_Z_timezone _acs-lang__lc_time_fmt_Z_timezone _acs-lang__lc_time_fmt_Z_timezone->aa_equals _acs-lang__lc_time_fmt_Z_timezone->aa_log _acs-lang__lc_time_fmt_Z_timezone->aa_log_result _acs-lang__lc_time_fmt_Z_timezone->lang::conn::timezone _acs-lang__lc_time_fmt_Z_timezone->lc_time_fmt

Testcases:
No testcase defined.

_acs-lang__locale__test_lang_conn_browser_locale (private)

 _acs-lang__locale__test_lang_conn_browser_locale

Partial Call Graph (max 5 caller/called nodes):
%3 aa_log aa_log (public) aa_log_result aa_log_result (public) aa_run_with_teardown aa_run_with_teardown (public) lang::system::locale_set_enabled lang::system::locale_set_enabled (public) lang::test::assert_browser_locale lang::test::assert_browser_locale (private) _acs-lang__locale__test_lang_conn_browser_locale _acs-lang__locale__test_lang_conn_browser_locale _acs-lang__locale__test_lang_conn_browser_locale->aa_log _acs-lang__locale__test_lang_conn_browser_locale->aa_log_result _acs-lang__locale__test_lang_conn_browser_locale->aa_run_with_teardown _acs-lang__locale__test_lang_conn_browser_locale->lang::system::locale_set_enabled _acs-lang__locale__test_lang_conn_browser_locale->lang::test::assert_browser_locale

Testcases:
No testcase defined.

_acs-lang__locale__test_system_package_setting (private)

 _acs-lang__locale__test_system_package_setting

Partial Call Graph (max 5 caller/called nodes):
%3 aa_equals aa_equals (public) aa_log aa_log (public) aa_log_result aa_log_result (public) ad_generate_random_string ad_generate_random_string (public) ad_try ad_try (public) _acs-lang__locale__test_system_package_setting _acs-lang__locale__test_system_package_setting _acs-lang__locale__test_system_package_setting->aa_equals _acs-lang__locale__test_system_package_setting->aa_log _acs-lang__locale__test_system_package_setting->aa_log_result _acs-lang__locale__test_system_package_setting->ad_generate_random_string _acs-lang__locale__test_system_package_setting->ad_try

Testcases:
No testcase defined.

_acs-lang__locale_language_fallback (private)

 _acs-lang__locale_language_fallback

Partial Call Graph (max 5 caller/called nodes):
%3 aa_equals aa_equals (public) aa_log aa_log (public) aa_log_result aa_log_result (public) aa_run_with_teardown aa_run_with_teardown (public) aa_silence_log_entries aa_silence_log_entries (public) _acs-lang__locale_language_fallback _acs-lang__locale_language_fallback _acs-lang__locale_language_fallback->aa_equals _acs-lang__locale_language_fallback->aa_log _acs-lang__locale_language_fallback->aa_log_result _acs-lang__locale_language_fallback->aa_run_with_teardown _acs-lang__locale_language_fallback->aa_silence_log_entries

Testcases:
No testcase defined.

_acs-lang__localize (private)

 _acs-lang__localize

Partial Call Graph (max 5 caller/called nodes):
%3 aa_equals aa_equals (public) aa_log aa_log (public) aa_log_result aa_log_result (public) aa_run_with_teardown aa_run_with_teardown (public) lang::message::register lang::message::register (public) _acs-lang__localize _acs-lang__localize _acs-lang__localize->aa_equals _acs-lang__localize->aa_log _acs-lang__localize->aa_log_result _acs-lang__localize->aa_run_with_teardown _acs-lang__localize->lang::message::register

Testcases:
No testcase defined.

_acs-lang__message__format (private)

 _acs-lang__message__format

Partial Call Graph (max 5 caller/called nodes):
%3 aa_equals aa_equals (public) aa_log aa_log (public) aa_log_result aa_log_result (public) aa_silence_log_entries aa_silence_log_entries (public) lang::message::format lang::message::format (public) _acs-lang__message__format _acs-lang__message__format _acs-lang__message__format->aa_equals _acs-lang__message__format->aa_log _acs-lang__message__format->aa_log_result _acs-lang__message__format->aa_silence_log_entries _acs-lang__message__format->lang::message::format

Testcases:
No testcase defined.

_acs-lang__message__get_embedded_vars (private)

 _acs-lang__message__get_embedded_vars

Partial Call Graph (max 5 caller/called nodes):
%3 aa_equals aa_equals (public) aa_log aa_log (public) aa_log_result aa_log_result (public) aa_true aa_true (public) lang::message::get_embedded_vars lang::message::get_embedded_vars (public) _acs-lang__message__get_embedded_vars _acs-lang__message__get_embedded_vars _acs-lang__message__get_embedded_vars->aa_equals _acs-lang__message__get_embedded_vars->aa_log _acs-lang__message__get_embedded_vars->aa_log_result _acs-lang__message__get_embedded_vars->aa_true _acs-lang__message__get_embedded_vars->lang::message::get_embedded_vars

Testcases:
No testcase defined.

_acs-lang__set_get_timezone (private)

 _acs-lang__set_get_timezone

Partial Call Graph (max 5 caller/called nodes):
%3 aa_equals aa_equals (public) aa_log aa_log (public) aa_log_result aa_log_result (public) ad_conn ad_conn (public) ad_try ad_try (public) _acs-lang__set_get_timezone _acs-lang__set_get_timezone _acs-lang__set_get_timezone->aa_equals _acs-lang__set_get_timezone->aa_log _acs-lang__set_get_timezone->aa_log_result _acs-lang__set_get_timezone->ad_conn _acs-lang__set_get_timezone->ad_try

Testcases:
No testcase defined.

_acs-lang__set_timezone_not_logged_in (private)

 _acs-lang__set_timezone_not_logged_in

Partial Call Graph (max 5 caller/called nodes):
%3 aa_equals aa_equals (public) aa_log aa_log (public) aa_log_result aa_log_result (public) aa_true aa_true (public) ad_conn ad_conn (public) _acs-lang__set_timezone_not_logged_in _acs-lang__set_timezone_not_logged_in _acs-lang__set_timezone_not_logged_in->aa_equals _acs-lang__set_timezone_not_logged_in->aa_log _acs-lang__set_timezone_not_logged_in->aa_log_result _acs-lang__set_timezone_not_logged_in->aa_true _acs-lang__set_timezone_not_logged_in->ad_conn

Testcases:
No testcase defined.

_acs-lang__upgrade (private)

 _acs-lang__upgrade

Partial Call Graph (max 5 caller/called nodes):
%3 aa_log aa_log (public) aa_log_result aa_log_result (public) aa_run_with_teardown aa_run_with_teardown (public) lang::message::unregister lang::message::unregister (public) lang::system::locale_set_enabled lang::system::locale_set_enabled (public) _acs-lang__upgrade _acs-lang__upgrade _acs-lang__upgrade->aa_log _acs-lang__upgrade->aa_log_result _acs-lang__upgrade->aa_run_with_teardown _acs-lang__upgrade->lang::message::unregister _acs-lang__upgrade->lang::system::locale_set_enabled

Testcases:
No testcase defined.

_acs-lang__util__convert_adp_variables_to_percentage_signs (private)

 _acs-lang__util__convert_adp_variables_to_percentage_signs

Partial Call Graph (max 5 caller/called nodes):
%3 aa_equals aa_equals (public) aa_log aa_log (public) aa_log_result aa_log_result (public) lang::util::convert_adp_variables_to_percentage_signs lang::util::convert_adp_variables_to_percentage_signs (private) lang::util::convert_percentage_signs_to_adp_variables lang::util::convert_percentage_signs_to_adp_variables (private) _acs-lang__util__convert_adp_variables_to_percentage_signs _acs-lang__util__convert_adp_variables_to_percentage_signs _acs-lang__util__convert_adp_variables_to_percentage_signs->aa_equals _acs-lang__util__convert_adp_variables_to_percentage_signs->aa_log _acs-lang__util__convert_adp_variables_to_percentage_signs->aa_log_result _acs-lang__util__convert_adp_variables_to_percentage_signs->lang::util::convert_adp_variables_to_percentage_signs _acs-lang__util__convert_adp_variables_to_percentage_signs->lang::util::convert_percentage_signs_to_adp_variables

Testcases:
No testcase defined.

_acs-lang__util__get_hash_indices (private)

 _acs-lang__util__get_hash_indices

Partial Call Graph (max 5 caller/called nodes):
%3 aa_log aa_log (public) aa_log_result aa_log_result (public) aa_true aa_true (public) lang::util::get_hash_indices lang::util::get_hash_indices (public) _acs-lang__util__get_hash_indices _acs-lang__util__get_hash_indices _acs-lang__util__get_hash_indices->aa_log _acs-lang__util__get_hash_indices->aa_log_result _acs-lang__util__get_hash_indices->aa_true _acs-lang__util__get_hash_indices->lang::util::get_hash_indices

Testcases:
No testcase defined.

_acs-lang__util__replace_adp_text_with_message_tags (private)

 _acs-lang__util__replace_adp_text_with_message_tags

Partial Call Graph (max 5 caller/called nodes):
%3 aa_log aa_log (public) aa_log_result aa_log_result (public) aa_true aa_true (public) lang::test::get_dir lang::test::get_dir (private) lang::util::replace_adp_text_with_message_tags lang::util::replace_adp_text_with_message_tags (public) _acs-lang__util__replace_adp_text_with_message_tags _acs-lang__util__replace_adp_text_with_message_tags _acs-lang__util__replace_adp_text_with_message_tags->aa_log _acs-lang__util__replace_adp_text_with_message_tags->aa_log_result _acs-lang__util__replace_adp_text_with_message_tags->aa_true _acs-lang__util__replace_adp_text_with_message_tags->lang::test::get_dir _acs-lang__util__replace_adp_text_with_message_tags->lang::util::replace_adp_text_with_message_tags

Testcases:
No testcase defined.

_acs-lang__util__replace_temporary_tags_with_lookups (private)

 _acs-lang__util__replace_temporary_tags_with_lookups

Partial Call Graph (max 5 caller/called nodes):
%3 aa_equals aa_equals (public) aa_log aa_log (public) aa_log_result aa_log_result (public) aa_silence_log_entries aa_silence_log_entries (public) aa_stub aa_stub (public) _acs-lang__util__replace_temporary_tags_with_lookups _acs-lang__util__replace_temporary_tags_with_lookups _acs-lang__util__replace_temporary_tags_with_lookups->aa_equals _acs-lang__util__replace_temporary_tags_with_lookups->aa_log _acs-lang__util__replace_temporary_tags_with_lookups->aa_log_result _acs-lang__util__replace_temporary_tags_with_lookups->aa_silence_log_entries _acs-lang__util__replace_temporary_tags_with_lookups->aa_stub

Testcases:
No testcase defined.

lang::test::assert_browser_locale (private)

 lang::test::assert_browser_locale accept_language expect_locale

Assert that with given accept language header lang::conn::browser_locale returns the expected locale.

Parameters:
accept_language (required)
expect_locale (required)
Author:
Peter Marklund

Partial Call Graph (max 5 caller/called nodes):
%3 test_locale__test_lang_conn_browser_locale locale__test_lang_conn_browser_locale (test acs-lang) lang::test::assert_browser_locale lang::test::assert_browser_locale test_locale__test_lang_conn_browser_locale->lang::test::assert_browser_locale aa_equals aa_equals (public) lang::test::assert_browser_locale->aa_equals lang::conn::browser_locale lang::conn::browser_locale (private) lang::test::assert_browser_locale->lang::conn::browser_locale

Testcases:
locale__test_lang_conn_browser_locale

lang::test::check_import_result (private)

 lang::test::check_import_result -package_key package_key \
    -locale locale -upgrade_array upgrade_array -base_array base_array \
    -db_array db_array -file_array file_array

This proc checks that the properties of messages in the database are what we expect after a message catalog import or upgrade.

Switches:
-package_key (required)
-locale (required)
-upgrade_array (required)
-base_array (required)
-db_array (required)
-file_array (required)
Author:
Peter Marklund

Partial Call Graph (max 5 caller/called nodes):
%3 lang::test::execute_upgrade lang::test::execute_upgrade (private) lang::test::check_import_result lang::test::check_import_result lang::test::execute_upgrade->lang::test::check_import_result aa_equals aa_equals (public) lang::test::check_import_result->aa_equals aa_true aa_true (public) lang::test::check_import_result->aa_true lang::message::get lang::message::get (public) lang::test::check_import_result->lang::message::get

Testcases:
No testcase defined.

lang::test::execute_upgrade (private)

 lang::test::execute_upgrade -locale locale

Executes the logic of the upgrade test case for a certain locale.

Switches:
-locale (required)
Author:
Peter Marklund

Partial Call Graph (max 5 caller/called nodes):
%3 test_upgrade upgrade (test acs-lang) lang::test::execute_upgrade lang::test::execute_upgrade test_upgrade->lang::test::execute_upgrade aa_equals aa_equals (public) lang::test::execute_upgrade->aa_equals aa_log aa_log (public) lang::test::execute_upgrade->aa_log aa_silence_log_entries aa_silence_log_entries (public) lang::test::execute_upgrade->aa_silence_log_entries aa_true aa_true (public) lang::test::execute_upgrade->aa_true lang::catalog::export_to_file lang::catalog::export_to_file (private) lang::test::execute_upgrade->lang::catalog::export_to_file

Testcases:
upgrade

lang::test::get_all_package_files (private)

 lang::test::get_all_package_files

Get all files on the system where some message key is expected.

Partial Call Graph (max 5 caller/called nodes):
%3

Testcases:
No testcase defined.

lang::test::get_dir (private)

 lang::test::get_dir

The test directory of the acs-lang package (where this file resides).

Author:
Peter Marklund <peter@collaboraid.biz>
Created:
28 October 2002

Partial Call Graph (max 5 caller/called nodes):
%3 test_util__replace_adp_text_with_message_tags util__replace_adp_text_with_message_tags (test acs-lang) lang::test::get_dir lang::test::get_dir test_util__replace_adp_text_with_message_tags->lang::test::get_dir test_util__replace_temporary_tags_with_lookups util__replace_temporary_tags_with_lookups (test acs-lang) test_util__replace_temporary_tags_with_lookups->lang::test::get_dir acs_package_root_dir acs_package_root_dir (public) lang::test::get_dir->acs_package_root_dir

Testcases:
util__replace_temporary_tags_with_lookups, util__replace_adp_text_with_message_tags

lang::test::setup_test_package (private)

 lang::test::setup_test_package

Partial Call Graph (max 5 caller/called nodes):
%3 test_upgrade upgrade (test acs-lang) lang::test::setup_test_package lang::test::setup_test_package test_upgrade->lang::test::setup_test_package aa_true aa_true (public) lang::test::setup_test_package->aa_true apm_enabled_packages apm_enabled_packages (public) lang::test::setup_test_package->apm_enabled_packages apm_package_info_file_path apm_package_info_file_path (public) lang::test::setup_test_package->apm_package_info_file_path apm_package_install apm_package_install (public) lang::test::setup_test_package->apm_package_install lang::test::test_package_key lang::test::test_package_key (private) lang::test::setup_test_package->lang::test::test_package_key

Testcases:
upgrade

lang::test::teardown_test_package (private)

 lang::test::teardown_test_package

Partial Call Graph (max 5 caller/called nodes):
%3 test_upgrade upgrade (test acs-lang) lang::test::teardown_test_package lang::test::teardown_test_package test_upgrade->lang::test::teardown_test_package apm_package_delete apm_package_delete (public) lang::test::teardown_test_package->apm_package_delete lang::test::test_package_key lang::test::test_package_key (private) lang::test::teardown_test_package->lang::test::test_package_key

Testcases:
upgrade

lang::test::test_package_key (private)

 lang::test::test_package_key

Partial Call Graph (max 5 caller/called nodes):
%3 lang::test::execute_upgrade lang::test::execute_upgrade (private) lang::test::test_package_key lang::test::test_package_key lang::test::execute_upgrade->lang::test::test_package_key lang::test::setup_test_package lang::test::setup_test_package (private) lang::test::setup_test_package->lang::test::test_package_key lang::test::teardown_test_package lang::test::teardown_test_package (private) lang::test::teardown_test_package->lang::test::test_package_key

Testcases:
No testcase defined.
[ show source ]