lang::test::assert_browser_locale (private)
lang::test::assert_browser_locale accept_language expect_locale
Defined in packages/acs-lang/tcl/test/acs-lang-test-procs.tcl
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):
- Testcases:
- locale__test_lang_conn_browser_locale
Source code: ns_set update [ns_conn headers] "Accept-Language" $accept_language set browser_locale [lang::conn::browser_locale] aa_equals "accept-language header \"$accept_language\"" $browser_locale $expect_localeXQL Not present: Generic, PostgreSQL, Oracle