Method |
Description |
|
testCanonicalize ( ) |
Tests formatting of locale. |
|
testCascade ( ) |
Tests cascading of locales. |
|
testCompose ( ) |
Tests composing of a locale from tags. |
|
testComposeDecomposeCompose ( ) |
Tests if the ouput of compose() can be used as the input for decompose()
and vice versa. |
|
testDecomposeFail ( ) |
Tests failing of parsing invalid locales. |
|
testDecomposeLoose ( ) |
Tests parsing of locales formatted loosely according to
the definition of the unicode locale identifier. |
|
testDecomposeStrict ( ) |
Tests parsing of locales formatted strictly according to
the definition of the unicode locale identifier. |
|
testDecomposeUsingShortcutMethods ( ) |
Tests parsing of locales using shortcut methods. |
|
testLookup ( ) |
|
|
testPreferredAvailableNegotiation ( ) |
|
|
testPreferredEmpty ( ) |
When the Accept-Language is empty, it should return null. |
|
testPreferredFromActionRequest ( ) |
|
|
testPreferredFromConsoleRequestEmptyLocales ( ) |
|
|
testPreferredFromConsoleRequestLang ( ) |
|
|
testPreferredFromConsoleRequestLanguage ( ) |
|
|
testPreferredFromConsoleRequestLcAll ( ) |
|
|
testPreferredFromConsoleRequestPrecedence ( ) |
|
|
testPreferredMalformedContainingChrome ( ) |
A random Firefox 4 sent us this Accept-Language header which is
malformed. |
|
testPreferredMalformedSpanish ( ) |
An Accept-Language coming from a Chrome user which contains an invalid
item es-419 causing preferred to fail with an exception while it
should ignored. |
|
testPreferredMalformedSquid ( ) |
A very strange Accept-Language which might be coming from a proxy, this
rule x-ns… must be ignored. |
|
testPreferredStarWithQ ( ) |
When the Accept-Language contains *;q=0.01 it's been seen as q and
raises an exception. |
|
testRespondsToMagic ( ) |
|
|
testRespondsToParentCall ( ) |
|
|