Dijit TextBox Globalization Test for Number

Before start this test, make sure the dojo/cldr/nls contains the data for "ar-eg" and "hi-in". If not, convert these CLDR data and put them there.

Number Format

Test DescriptionTestExpectedResultComment
Locale: ar_EG12٬345٫067 Compare (Escaped)
Locale: ar_EG
Locale: ar_EGSee #2 (currency.html).
Locale: ar_EGSee #2 (currency.html).
Locale: hi_INSee #2 (currency.html).
Locale: hi_INSee #2 (currency.html).

Number Validate

Test DescriptionTestInputParsed ValueExpectedResultComment
Locale: ar_EGCorrect
Locale: ar_EGCorrect
Locale: ar_EGCorrectSee #2 (currency.html).
Locale: ar_EGCorrectSee #2 (currency.html).
Locale: hi_INCorrectSee #2 (currency.html).
Locale: hi_INCorrectSee #2 (currency.html).

Currency Format

Test DescriptionTestExpectedResultComment
Locale: ar_EG Currency: EGP
Locale: ar_EG Currency: EGP
Locale: ar_EG Currency: EGPSee #3. Failed in Firefox. See #2.
Locale: ar_EG Currency: EGPSee #3. Failed in Firefox. See #2.

Currency Validate

Test DescriptionTestInputParsed ValueExpectedResultComment
Locale: ar_EG Currency: EGPCorrectFailed in Firefox. See #2.
Locale: ar_EG Currency: EGPCorrectFailed in Firefox. See #2.
Locale: ar_EG Currency: EGPCorrectSee #3. Failed in Firefox. See #2.
Locale: ar_EG Currency: EGPCorrectSee #3. Failed in Firefox. See #2.

Date Format

Test DescriptionTestExpectedResultComment
Locale: ar_EG Format: Short
Locale: ar_EG Format: Medium
Locale: ar_EG Format: Long
Locale: ar_EG Format: Full
Locale: hi_IN Format: Short
See #3 (currency.html).
Locale: hi_IN Format: Medium
See #3 (currency.html).
Locale: hi_IN Format: Long
See #3 (currency.html).
Locale: hi_IN Format: Full
See #3 (currency.html).

Date Validate

Test DescriptionTestInputParsed ValueExpectedResultComment
Locale: ar_EG Format: Short
Correct
Locale: ar_EG Format: Medium
Correct
Locale: ar_EG Format: Long
Correct
Locale: ar_EG Format: Full
Correct
Locale: hi_IN Format: Short
CorrectSee #3 (currency.html).
Locale: hi_IN Format: Medium
CorrectSee #3 (currency.html).
Locale: hi_IN Format: Long
CorrectSee #3 (currency.html).
Locale: hi_IN Format: Full
CorrectSee #3 (currency.html).