Opened 14 years ago
Closed 14 years ago
#2879 closed defect (duplicate)
broken unit test in FF: tests.i18n
Reported by: | liucougar | Owned by: | alex |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | IO | Version: | 0.9 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
in FF, only enable tests._base.xhr and tests.i18n, tests.i18n will fail with the following message:
GROUP "tests.i18n" has 1 test to run Error: Bundle not found: salutations in tests , locale=de ERROR IN: (function (t) {var salutations;salutations = dojo.i18n.getLocalization("tests", "salutations", "de");t.assertEqual("Hallo", salutations.hello);salutations = dojo.i18n.getLocalization("tests", "salutations", "en");t.assertEqual("Hello", salutations.hello);salutations = dojo.i18n.getLocalization("tests", "salutations", "en-au");t.assertEqual("G'day", salutations.hello);salutations = dojo.i18n.getLocalization("tests", "salutations", "en-us");t.assertEqual("Hello", salutations.hello);salutations = dojo.i18n.getLocalization("tests", "salutations", "en-us-texas");t.assertEqual("Howdy", salutations.hello);salutations = dojo.i18n.getLocalization("tests", "salutations", "en-us-new_york");t.assertEqual("Hello", salutations.hello);salutations = dojo.i18n.getLocalization("tests", "salutations", "en-us-new_york-brooklyn");t.assertEqual("Yo", salutations.hello);salutations = dojo.i18n.getLocalization("tests", "salutations", "xx");t.assertEqual("Hello", salutations.hello);salutations = dojo.i18n.getLocalization("tests", "salutations", "zh-cn");t.assertEqual("u4F60u597D", salutations.hello);}) FAILED test: salutations
if tests._base.xhr is run after tests.i18n, then tests.i18n won't fail
Note: See
TracTickets for help on using
tickets.
Dup of #2757, but a very keen observation re: xhr